My character moves using the 4 direction method.
My bullet follows what I'm pressing down on my arrow keys
how do i make him shoot only left/right and up/down ?
Set the bullet angle to 0-90-180-270 on creation.
Develop games in your browser. Powerful, performant & highly capable.
You mean like this :
Thanks guys!! it worked!