1. Hey! Guest! The 36th GMC Jam will take place between February 27th, 12:00 UTC - March 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice
  2. NOTICE: We will be applying a Xenforo update on Tuesday 25th of February. This means that from approximately 10:00 to 14:00 BST the forums will be offline (or possibly longer). Sorry for the inconvenience! Official Announcement here.

[Solved] Suddenly Animation End Event Problems

Discussion in 'Programming' started by robproctor83, Jan 17, 2020.

  1. robproctor83

    robproctor83 Member

    Sep 30, 2019
    Hello, I am losing my mind over this and for the life of me I just can't understand why... I am suddenly having issues with the animation end event letting the sprite loop to the first frame before triggering, specifically with my attack animation.

    I understand that you can't just check the position of the image_index (especially since I have delta time going on), but the animation_end event to my understanding is supposed to capture the end frame properly, no? It's always worked, and now for some reason even if I undo all of my edits i can't get it to back to normal. I opened a backup from the other day to check and the animation plays fine there. It's like once I edited something it triggered a change that can't be undone.... Very strange

    *edit* In looking for a solution I found a script from pixelated pope that lets me properly check if the sprite is ended and even use delta time with it and everything, so that is what I will do. However, I just don't understand why this is happening. This happened one other time with a different animation and to fix it I had to revert to a previous backup, but again I wasn't able to fix it by undoing my edits... Very strange.

    This is the script that works properly:
    Last edited: Jan 17, 2020

Share This Page