Discuss Scratch

Scratchy697
Scratcher
1000+ posts

Particle effect rotates too fast

so, basically, i'm trying to make a particle effect using pen, ad i've almost finished it, but, the effect rotates way too fast, here's the game. how do i make the effect slower?
the project

Last edited by Scratchy697 (Aug. 8, 2021 01:26:03)

awesome-llama
Scratcher
1000+ posts

Particle effect rotates too fast

I'm getting huge amounts of lag in it, which I can see is due to hundreds of clones being created and then deleted each frame. You might want to fix that, preferrably with a method that doesn't use clones. I can give you a script for this if you want it.

As for rotation speed, it appears that way due to the counter variable not being reset between the last clone in the line and the first clone in the next frame. To solve this, you can just add a way to reset the variable. Create a new variable to store the starting position of the first clone (which would be the value used to reset the counter). Increment it to control the rotation of the entire effect like this:

Scratchy697
Scratcher
1000+ posts

Particle effect rotates too fast

awesome-llama wrote:

I'm getting huge amounts of lag in it, which I can see is due to hundreds of clones being created and then deleted each frame. You might want to fix that, preferrably with a method that doesn't use clones. I can give you a script for this if you want it.

As for rotation speed, it appears that way due to the counter variable not being reset between the last clone in the line and the first clone in the next frame. To solve this, you can just add a way to reset the variable. Create a new variable to store the starting position of the first clone (which would be the value used to reset the counter). Increment it to control the rotation of the entire effect like this:

I don't really know how to not use clones in my script, so, can you help?

Last edited by Scratchy697 (Aug. 9, 2021 00:16:43)

Powered by DjangoBB