I want to make a little trailing effects behind a moving rectangle I have, but I don't know how to do it. I know that I should use LOVEs particle system, but I can't get those to work, partly because the wiki doesn't tell me what parameters the particle functions take, like if I use
Manyrio wrote:use canvas, do a canvas on your rectangle then use it for your particles
ok its kinda working, but..
1) the particles start off screen and im not sure why
2) they kinda spray off in random directions, I want it to trail behind my square no whatever the direction i move it in.
Sulunia wrote:I never really messed with the particle systems. Usually i just create a table with past values and draw a fading rectangle on these old positions.
But i guess it is more optimized to do it with particles. Not sure what is wrong though.
That kinda what i wanted to do, but I couldnt make it work either lol
Although i'm going to create a nice WARNING here and say this is probably not the best way of doing this, since i believe the particle system is more optimized. However, it works, and i do the same thing in beatfever since i'm lazy.
Although i'm going to create a nice WARNING here and say this is probably not the best way of doing this, since i believe the particle system is more optimized. However, it works, and i do the same thing in beatfever since i'm lazy.
Yeah thats exactly how I wanted to do it, ill have to practice that code haha. Doesnt help that I'm new to lua as well as LOVE ahaha