How Can We Help?
Loading A 2D Sprite
You can load any of the 2D sprites registered in the system for example:
b is a bird sprite
Here we created an object called “b” which is an instance of type bird and it’s a sprite.
Bird is a sprite having 5 columns and 3 rows so you can easily animate it by typing:
b.play(frames 0 to 14) loop async
The play method simply runs through all the sprite’s frames one after the other