set {_p} to player
set {_loc} to location of player
loop 50 times:
set {_loc} to location 0.5 meters in front of {_loc}
add {_loc} to {_locations::*}
loop 50 times:
add 1 to {_num}
drawSphere 1, particle "flame", speed 1, center {_locations::%{_num}%}, id "flamewand_%{_p}%_%{_num}%", radius 1, density 1000, visibleRange 100```
#Is it possible to somehow prevent these particles from shooting in every direction of the world?
1 messages · Page 1 of 1 (latest)
Speed 0 I guess
works, but do you have any idea how to make it faster and smoother?
set {_p} to player
set {_loc} to location of player
loop 50 times:
set {_loc} to location 0.3 meters in front of {_loc}
add {_loc} to {_locations::*}
loop 50 times:
add 1 to {_num}
drawSphere 4, particle "flame", speed 0, center {_locations::%{_num}%}, id "flamewand_%{_p}%_%{_num}%", radius 0.5, density 100, visibleRange 100
wait tick
stopEffect id "flamewand_%{_p}%_%{_num}%"```
I guess you could set {_loc} to something higher
if I give more, the flames will fly further than 15 blocks, and I don't want that, {_loc} after the loop is responsible for the length of the flight
Why don't you just change the amount of loops than?
experimented, managed to increase the speed and it runs a little smoother, but still sometimes there is a hole in the particles, as if it stole 4 ticks
set {_p} to player
set {_loc} to location of player
loop 25 times:
set {_loc} to location 1 block in front of {_loc}
add {_loc} to {_loka::*}
loop 25 times:
add 1 to {_num}
drawSphere 1, particle "flame", speed 0, center {_loka::%{_num}%}, id "OgienX_%{_p}%_%{_num}%", radius 0.5, density 50, visibleRange 100
wait tick
stopEffect id "OgienX_%{_p}%_%{_num}%"```
current code
I'm no expert on particles, but btw. You said the flames wasn't allowed to fly further than 15 blocks, yet you put it to loop 25 times and {_loc} to 1 block in front
I changed my mind, 15 blocks is not enough
bump