So I'd like to make it so that when a sprite respawns, it must be in a different animation frame each time. How could I use "random()" on that?
Develop games in your browser. Powerful, performant & highly capable.
Hey,
just set the frame to "floor(random(0,5))", but replace the 5 with the maximum amount of frames of your sprite.