On animation "xxx" finished not respected?

0 favourites
  • 6 posts
From the Asset Store
2D fighting template based in the game that defined the fighting games genre.
  • Are there cases where On Animation "xxx" Finished could not be triggered despite that I verified the animation has been started?

    I am having problems with that maybe 5% of the cases it is not respected and the chain of events get ignored.

  • we would have to see your events to be sure but most likely you have an event under the on animation finished event that is triggering right after it making it seem like its not working. or you have any event that makes it impossible to trigger. like for example "player is on ground play animation xxy"

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I suspected that too.

    I had disabled all other "play animations" but it did not help.

    I can't share my code because it sadly is too convoluted to share simple capx as the game bases on special engine.

    I thought if I could let the events wait for same time length as the animation itself before executing the events. But I am not too well versed in how to pull this off. How would you do it? I thought of adding subevent, wait XX second to trigger a variable, and then run the "wait for animation to finish" event on the variable is triggered instead. But how to do it best..

  • Maybe you could help yourself by trying to create a simple prototype of just the part that doesn't work. It may then help you see what the problem is in your more complex project.

  • Hmm. just to set up that thing and actually use it and see if the error persists, I have to use the complex engine. So many things that depends on it.

    I would like to use an alternative that bases on timer instead for animation, but I could try to disable EVERYTHING that is not directly related to it. Rght now I am working hard with another bug, but I will return to this one later. Do not want to have two different versions.

  • I discarded that other debug work, never get it work. So I got back to this one. I solved it by adding a global variable. For the sequence of events I set the variable to 1, and then for next event, its condition is variable set to 1 (trigger once) and then end of it, set to 2, and so on. So NO ESCAPE!

    And then for the animation end, I replaced the condition with event like this:

    Conditon:

    TubeProcess = 1 - System: Wait 0.2 seconds

    (and)

    Trigger Once.

    Blank Subevent: System: Set TubeProcess to 2

    That did the trick for the animation length.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)