PICO-8: Simple Item Animation
Simple Item Animation
This cart demonstrates simple item animation. It is heavily commented so you can pull apart how this is being achieved.
Notes: The basic idea is to have a few specific pieces of information tracked with each item:
- A list of
sprites
in the order they should be played in the animation. - A
tick
which keeps track of how many_update()
ticks have gone by since the last time the animation changed. - An
anim_speed
that tracks how many_update()
ticks should happen before the animation moves to the next frame. - The current
frame
for the animation.
Status | In development |
Category | Other |
Platforms | HTML5 |
Rating | Rated 5.0 out of 5 stars (1 total ratings) |
Author | MBoffin (Dylan Bennett) |
Genre | Educational |
Made with | PICO-8 |
Tags | PICO-8, sourcecode |
Download
Download
item_animation.p8.png 6.2 kB
Install instructions
Save this file to your PICO-8 carts folder. Then load it by typing load item_animation
in the command line mode of PICO-8.