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="http://i40.tinypic.com/241tp47.png" 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" />