Deleted member 177737
D
Deleted member 177737
Hey, I'm currently working on a little SRPG hero selection system and I would like to add a little cosmetic feature but I'm not exactly sure how.
I'm trying to make it so that when the player holds down the left arrow key the hero turns left, when the player holds down the right arrow key the hero turns right, and when either the left or right is released the hero stops spinning. I also want to include a trigger to reset the hero to his original facing.
This was my test trigger which woulden't work because the hero is using a "Maximum Pitch Angle of -270" so when the facing changes he just spins around in a circle while staring at the camera.
Edit:
Here is what it looks like so far, this might help you figure out what I'm talking about with what direction the hero is supposed to spin.
I'm trying to make it so that when the player holds down the left arrow key the hero turns left, when the player holds down the right arrow key the hero turns right, and when either the left or right is released the hero stops spinning. I also want to include a trigger to reset the hero to his original facing.
This was my test trigger which woulden't work because the hero is using a "Maximum Pitch Angle of -270" so when the facing changes he just spins around in a circle while staring at the camera.
-
Turn Hero Left
-
Events
- Player - Player 1 (Red) Presses the Left Arrow key
- Conditions
-
Actions
- Unit - Make Hero face ((Current turn speed of Hero) - 5.00) over 0.10 seconds
- Wait 0.01 seconds
- Trigger - Run (This trigger) (checking conditions)
-
Events
Edit:
Here is what it looks like so far, this might help you figure out what I'm talking about with what direction the hero is supposed to spin.
Last edited by a moderator: