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.
You mean like this :
Develop games in your browser. Powerful, performant & highly capable.
Thanks guys!! it worked!