i have made a sprite with 5 frames (5 .png files) to make my character run, and after "playing once" it stops, how do i control it? like to make it loop after pressing a certain button or touching the screen.
Develop games in your browser. Powerful, performant & highly capable.
Open your sprite. Under "Animation 'default' properties, set "Loop" to Yes. In your startup code, set the Animation to Stop. On button or touch, set Animation to Start; when released, set to Stop.
Edit: 5 PNG files.. you mean 5 frames?
yes that's what i meant