TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
shooting
Pages:
1
shooting
digdug678
Posts: 9
September 09, 2013, 12:13:40 pm
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
September 11, 2013, 09:35:52 am
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
September 11, 2013, 10:41:27 am
if you find out please let me know this is for a school assesment
He who smelt it, dealt it
LukeZaz
Posts: 61
September 11, 2013, 12:58:34 pm
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.
Pages:
1