What effect does this have?
sprite.playAnimation('run');
- Play the running animation
- Stop all movement
- Save player progress
- Spawn a new level
The sprite is instructed to start the run animation sequence.
Play Game Dev ▸
sprite.playAnimation('run');