Discord Thread Is it possible to somehow prevent these particles from shooting in every direction of the world?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

This thread came from the skUnity Discord. You can't reply to it here but if you join the skUnity Discord, you'll be able to post a reply there. The thread link is part of the thread's message.
Status
Not open for further replies.

skUnity Discord

Site Manager
Aug 5, 2023
12,755
1
0
The skUnity Discord
discord.gg
code_language.skript:
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

Posted by: _grifin_ from the skUnity Discord. View the thread on skUnity Discord here
 
works, but do you have any idea how to make it faster and smoother?
code_language.skript:
        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}%"

Posted by: _grifin_ from the skUnity Discord.
 
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
code_language.skript:
        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

Posted by: _grifin_ from the skUnity Discord.
 
Status
Not open for further replies.