I have spent the last two hours banging my head against the wall trying to figure this out on my 2D platforming game.
I want to be able to tell when my character changes direction from left to right. The reason for this is, when my character suddenly changes direction, the run animation will pause for 0.5 seconds on a specific frame to make the character skid a little before running the opposite direction.
So, in a nutshell, this is the sequence of events:
Character is running right -> User presses left -> Sprite animation pauses for 0.5 seconds -> Character runs left.
Likewise, the reverse will be true also:
Character is running left -> User presses right -> Sprite animation pauses for 0.5 seconds -> Character runs right.
I can't figure out how I would create an event for this.
Any guidance or direction would be so helpful.
Thanks!