Trouble with "Animation Finished" Event

This forum is currently in read-only mode.
  • At the end of my level, in my platformer, I was hoping the player could approach an elevator, and hit the spacebar, prompting an animation that would show the elevator opening, the character getting in, then the elevator closing to finish things up.

    But I've had major problems trying to make this work. It all goes well up until the end of the animation where the elevator has opened. From there, it just ignores the part about closing and where the character is supposed to look like he has gone in. It just goes straight back to the "Idle" animation I had set up where the doors are closed.

    I figured the problem had to be my "Animation Finished" event, which sets it up so that once the "Elevator open" animation finishes playing, it'll go to a completely different group and specify events for closing the elevator door and having the effect of the character going inside of it.

    Now as I said, this part of what I was hoping to do always gets ignored for some reason. But I know it's not the group which isn't working, because within that group I still specified the closing out of the level, which still works. It's just that certain parts, the closing and the character hopping in are completely omitted somehow.

    I'm at a stage in my project where I'd rather not post a .cap of this, but I will post a screen cap... hope that helps.

    <img src="" border="0" />

    Note: The 6th event has nothing to do with my issue, it's just inconveniently placed. <img src="smileys/smiley36.gif" border="0" align="middle" />

    A couple of other things I should bring up:

    • I unchecked loop in the animations for the elevator on all of them.
    • I have an "Idle" animation for the elevator since without any behaviors for it, I couldn't think of any other way to keep it looking like a closed elevator until the other events came up. I'm still not sure if that's an issue or not. <img src="smileys/smiley5.gif" border="0" align="middle" />   
  • Add a "play current animation" action to event 9, that will play the animation from the beginning.

    The "Set Animation" action leaves the animation frame number unchanged, so when changing to "Close" the animation is already done and "Animation finished" was not triggered.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for the response R0J0hound.

    When I add "Play current animation", the elevator plays the open animation, but now instead of skipping an animation it just stops there and seems to ignore the other events.

  • I can post the cap if anyone thinks that'll help. Like I said, I'm at a stage where I'd prefer not to in my game, but I'm dying to get this fixed and nothing seems to work. :/

  • Post it, that'll help. You might be running into a little known oddity of how triggers work.


    The problem I'm having is in the event sheet for the first level.

  • Add a 'trigger once' after the elevator 'animate' condition in event 9. Does that make it do what you want to?

  • That worked! Took you minutes to figure out a problem I couldn't solve in hours. <img src="smileys/smiley36.gif" border="0" align="middle" />

    Thanks for the help!

  • Well, I have been using construct for like 5 years. :) Keep at it and you'll get better at it too!

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