shooting

digdug678

  • Posts: 9
How do i make it so the bullet shoots when enter is pressed ands the projectile goes depending on what way the actor is facing?
He who smelt it, dealt it

roborama

  • Posts: 1
I have the same question. so far i can only figure out to have it shoot in a a specific direction, regardless of what direction my character is facing. help?
--------------------------------------------------
the bigger the orange, the bigger the peel

digdug678

  • Posts: 9
if you find out please let me know this is for a school assesment
He who smelt it, dealt it

LukeZaz

  • Posts: 61
Try creating a 'direction' variable of type Number, then, whenever your character changes direction, set it to a new number. For example, left is 0, right is 1. Then when your character shoots, have it check the direction variables (if direction = 0, shoot left) and depending on that shoot in a different direction; I've attached a behavior that uses this.