Hi. I was hoping someone would take a little bit of their time and help me out. I have attached some pictures explaining what I’m trying to do. I want to move my character with the directional keys and have that activate his walk cycle. I also want to make his gun follow the mouse.
I found some command code but I need his legs to move only when the key is down? How can I figure this stuff out? I have watched videos and read some fundamental books but this is the only useful code I have found so far.
set the player to stop at initial
below each of your player.x or player.y line, add a
create another event listener for KEY_UP event to stop the player