Hi everyone, I started using Construct 2 yesterday and although it's great, I've been stuck on this same issue for hours now.
Basically, I'd like to make a platformer, and I would like for the character to have running animation and a stopping/turning animation.
I would like for the turning animation to play whenever the character is decelerating. I.E. Either running in one direction and then pressing "run" in the opposite direction, or running in one direction and then stopping.
Once the character starts accelerating again, the normal run animation would play. So the sequence would go:
1. User presses "right"
2. Character runs right, with the "Run" animation playing
3. User presses "left"
4. Character starts to decelerate, with the "stop/turn" animation playing
5. Character very briefly comes to a full stop
6. Character starts to accelerate left, with the (mirrored) "Run" animation playing.
OR
1. User presses "right"
2. Character runs right, with the "Run" animation playing
3. User releases "right" and presses nothing
4. Character starts to decelerate, with the "stop/turn" animation playing
5. Character comes to a stop and enters the "Idle" animation
I've tried everything I can think of, including some truly weird attempts involving setting global variables as delayed assessments of Physics velocity. Which failed hilariously. Can anyone let me know what I'm doing wrong?
Thanks!