Unfortunately I don't have enough reputation posts to post my capx file but I'm working on a project (first time making a game) that is an "endless running" style game that avoids oncoming cars and obstacles (Birds eye view). I tried to implement the option to have the main character have a boost in speed when the user presses the spacebar.
When spacebar is pressed, i increase the animation speed, increase 8direction speed/acc/dec, wait 5 seconds, and then set them all back to their previous values. I'm thinking there's a better way to do this using some kind of timer, but this is what I've got.
The problem, is that when the user presses space bar, my character immediately turns to the right (east), and then when the 5 seconds is up and the speed/acc/dec goes back to original values, he sort of does a lunge.
I'm hoping this is an obvious problem that I've overlooked. Thanks again!