Create custom animation sequences that eliminate duplicate frames in your sprites.
This set of scripts allow you to create an animation sequence and then call a function in your draw event to calculate which sprite image_index to draw for the current step. The scripts will keep track of how long each animation frame should be displayed and which sprite image_index to draw for the current animation frame.
See the included demo project or the screenshots here for example code to implement an animation sequence in an object's Create, Draw, and Clean Up events.
When adding to your own project just import the scripts.
Creates a new animation sequence and returns the id.
animation_sequence_add_frame(sequence, image_index, steps);
Add a frame to an animation sequence.
Returns the image_index to draw for the current step.
Returns the number of times the animation has been completed played.
Destroys the animation sequence.
Version 1.0.2. Published April 7, 2017
This asset hasn't received enough reviews yet.
You can only review assets you've bought.
No reviews have been left for this asset - be the first!
Total size 22.8 KB