I have an issue when i try to create a sprite with random frame.
so first i create the object and then i use sprite set animation frame to random(1)
I tried with random(0) also with random(0,1) and i cant create sprites with random frame.
Anyone can please help me?
Thanks and regards.
int(random(2)) will give you 0 or 1.
Develop games in your browser. Powerful, performant & highly capable.
int(random(animationframecount+1)) as blackhonet said, or use round or floor (random(0,animationframecount)) will cut the .3231321 digits after the full number
OMG dude, you are my hero, thanks a lot.