Does animation on finished trigger work?

0 favourites
  • 9 posts
From the Asset Store
3 pixel charaters with over 8 animations each + animations with a gun
  • I'm going to outline the entire problem with a picture, but basically, on animation finished seems to fail for sprite families. Before I post this as a bug (A REALLY FREAKING ANNOYING ONE THAT MADE ME DO AN ANGRY DONKEY KONG DANCE IN MY ROOM), I want to make sure I'm not doing something wrong.

    <img src="http://dl.dropbox.com/u/12667027/Construct%202/FamilyAnimationFinishedBug/familyanimationbug.png" border="0">

    Here is the capx as well for those interested in seeing this in action.

    Family Animation Capx

    P.S. Will I eventually get some kind of xbox achievement award for discovering the most bugs, like an Orkin Man Trophy or something? <img src="smileys/smiley36.gif" border="0" align="middle">

    -- cacotigon

    EDIT: Guess what I just realized. Since the hack solution is checking if the animation is playing and the frame is set to the last frame, it's going to immediately trigger at the *start of the frame* without waiting for the last frame to complete the frame time allotted to it in the 'Frame Speed', SO OH BOY.

    EDIT 2: I duplicated the last frame in the animation to "fix" the problem.

  • Since no one has responded, I'm going to go ahead and file this as a bug.

  • I'm pretty sure it's a bug... But until that gets fixed, one way to get your hack solution to work is by adding a blank frame at the end of the animation, then check for when it hits THAT frame. That allows the second to last frame (which previously WAS the last frame) enough time to play out properly.

    At least, that SHOULD work... don't do angry Donkey Kong dances at me if I'm wrong. <img src="smileys/smiley6.gif" border="0" align="middle" />

  • Sully's suggestion does work, although I might recommend just duplicating the last frame, so you don't have any chance of having the sprite go invisible for a frame. <img src="smileys/smiley2.gif" border="0" align="middle" /> But I use that workaround myself.

  • yes, same here. "On animations "" finished" do not work for Family objects.

    Could someone move this to C2 bugs section? Kyatric, Ashley (sorry for asking, but it's a bug and here is not the right place for that topic)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • , SullyTheStrange: Yeah, as I mentioned at the end of my original post, that's what I ended up doing, which works just fine, but kind of pain, since I've got to remember to do it for every new sprite animation that I add.

  • Having the same problem, too

  • I have the same problem. Any news about it?

  • Same here... Any solution?

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