Hey guys. I've got almost no past coding experiences so I'm having a difficult time thinking a solution for this.
This is how my character moves (WASD movement)
Now this works pretty well, except for 2 things I can't figure out.
1. When two buttons are pressed at once (ex. W and D) the character flies at a 45 degree angle. I want the player only to be able to press one button as once so I need a way to prevent this.
2. I can't for the life of me let my character stop moving when he hits an object.
Here is the capx if you wanna take a look.
Thanks a bunch!