Create custom animation sequences that eliminate duplicate frames in your sprites.

  • Include sprite frames in any order
  • Include the same sprite frame more than once
  • Have different display durations per frame
  • Call a function to determine how many times the animation has played all the way through

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.

Script overview:


Creates a new animation sequence and returns the id.

animation_sequence_add_frame(sequence, image_index, steps);

Add a frame to an animation sequence.

  • sequence: the animation sequence id returned from animation_sequence_create
  • image_index: the image_index for this animation frame
  • steps: the number of steps to show this image_index for


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.

End User Licence Agreement (EULA).

Version 1.0.2. Published April 7, 2017

Age Rating: 4+

Average Rating

This asset hasn't received enough reviews yet.

Your review

You can only review assets you've bought.

No reviews yet

No reviews have been left for this asset - be the first!

Package contents

Total size 22.8 KB

assetpackage.yy 3.48 KB fonts objects rooms scripts sprites
0aa5b128-d0cb-4279-b0da-a32606df88c9.png 151 Bytes 0d207817-4de9-4d74-a09a-5b018ea25026.png 191 Bytes 277e96a8-d556-4b53-98cf-9ffa944b0959.png 217 Bytes 44309ebd-6e78-458a-9339-ef9a6d586293.png 182 Bytes 5d207914-4898-467f-a91d-4906731d44d1.png 187 Bytes 828dfde8-cc53-44ae-9a63-f5d6db6eb0ff.png 220 Bytes 8d16fef0-a535-4c9f-8a8a-69fa8fe21f6c.png 186 Bytes ac285d96-3aed-4c75-9b68-a0c2a3d53f0a.png 180 Bytes ae405e08-9e49-4e48-8d35-8031558ca47a.png 191 Bytes b8315d3c-e2f4-412a-b00a-7cd8070ca4f6.png 186 Bytes c6796144-f35d-40f8-8e53-48ea66a0d272.png 224 Bytes db573e8a-cf0f-43b7-a24a-8981fe1ea549.png 188 Bytes df8557c1-5b73-41d6-8892-90de9a444aed.png 187 Bytes dffad1a0-9b6c-4220-ab88-57303cd84612.png 222 Bytes e5c53a22-33a0-4b55-a6f9-ffbf20a8b84f.png 186 Bytes fe781402-2e89-40db-8e06-72302d7fc89c.png 218 Bytes spr_sample.yy 15.3 KB layers

What is the issue?

Back to Top