bullet directions
Posted: Tue Aug 27, 2013 5:01 am
Hi guys
I see many tutorials about bullets BUT they are with the mouse direction!!
bullets follow the mouse pointers..
now can someone tell me how to use bullets but with one key to trigger?
for example a player moves up with (w) down with (s) right with (a) and finally left with (d)
and (k) would be the fire button...
now how do i do it? for one key to fire different directions?
if my player is facing up use K to fire or if the player its facing down still use K to fire
i used variables likes
left ="left"
but still didn't work
can someone tell me?? thank you !!!!!!!!!!!!!!!
I see many tutorials about bullets BUT they are with the mouse direction!!
bullets follow the mouse pointers..
now can someone tell me how to use bullets but with one key to trigger?
for example a player moves up with (w) down with (s) right with (a) and finally left with (d)
and (k) would be the fire button...
now how do i do it? for one key to fire different directions?
if my player is facing up use K to fire or if the player its facing down still use K to fire
i used variables likes
left ="left"
but still didn't work
can someone tell me?? thank you !!!!!!!!!!!!!!!