Forum Discussion
Manual Character Walking - RPG Game Style
I just actually decided to figure out on my own how to do something similar to this. Right now, I can make the character move left or right across the screen, and even jump (with a small GIF animation). It's not perfect, but I figured out how to do most of this myself. Glutton for punishment.
Anyway, the motion issue you're referring to sounds quite similar to a problem I was having. If you held down the button, the character flies across the screen. To remedy this, I had to create a variable.
So, essentially, when the user presses the "right arrow key", that variable (true or false) adjusts to 'true' until the motion path animation completes. Then it toggles to false again.
Then, the trigger that causes the motion path has a condition set to it: if [walking variable] = false. So, basically, the motion path will only trigger if the variable is false. If it is true, then even if you hold down the key, it won't trigger until the variable toggles to "false" again after the original motion path completes.
I understand this was months ago. So, I'm sure you figured it out, but I thought I'd add it on here just in case. :)
Related Content
- 10 months ago