GMS 4.1: How to Stop at a Specific Frame, using Gif Animation?

Channel:
Subscribers:
268
Published on ● Video Link: https://www.youtube.com/watch?v=ZFeXUtPgRzg



Duration: 0:00
25 views
1


GMX File: https://www.dropbox.com/scl/fi/mox1lejnv6wn3bmub21u5/stop_specific_frame2.gmx.zip?rlkey=by1j449capuj2ej32373syd0e

car1

Events:

Animation End

Actions:
image_index = image_number +21; ////After the animation plays out, only once, then the gif animation will stop at frame 21 when done. Let me show you what I mean....
image_speed =0; ////Does not loop because the speed is set to 0, let me try 1 to see if it only plays 1 more time. Speed does not matter, but the code above image_index = image_number +21; does matter, it will stop at image 21
//// Go to Edit, then Edit Sprite, see I choose image 21 to stop on this frame, once the gif animation plays out one time.

Coming Soon: https://mc-game-zone.wixsite.com/mc-game-zone/coming-soon-01-1