I'm following tutorial 1 with some changes. When moving, the shot key does not work. when pressed shoot key the player is shooting continuously and if i press an arrow key to move, the player stop shooting and moves.
I can't reproduce this behavior with the tutorial games so this is probably due to some of you changes. If you're using the keyTracker I can think of one possible bug.:
Comments
If you use a code like this:
And the user is pressing the key 65 then the code won't check for the other keys. The solution is to use a series of
if
rather thanelse if
.