When i press left,right,up,down key it wont stop moving!
X-rayGames
Member Posts: 66
When i press left,right,up,down key it wont stop moving!
Comments
Actor receives event - [down] keyboard is down
Change Velocity
Direcion: 270
Speed: 300
Relative to: Actor
(note: don't use velocity, use the move behavior)
Make an integer attribute called "move"
Next go into the actor that you're moving. Here are the rules:
Rule:
When key(left/right/up/down) is down
Change attribute (move) to 1
Now make an otherwise in that same rule stating:
Otherwise: change attribute (move) to 0
2nd rule:
When: attribute (move) is 1
(now add a move behavior)
Move actor to: whichever direction you want to move
You will have to do this for all directions (up, down, right, and left