HELP ME! Shooting left and right where ever it facing
OmFgiTzLonGz
Member Posts: 0
Hi, I am having some problem and i need help here. What i wanted to do is...
making my 'Player' Actor to able to shoot out an 'SpawnActor' to its Left while its facing left. making my 'Player' Actor to able to shoot out an 'SpawnActor' to its Right while its facing Right.
help please thanks!
Comments
I stopped helping so much around here a while back because of several reasons but Im sure a moderator or someone will chip in as its really easy to do.
You might be warned about starting the same thread 6 minutes after no one replied to the last one
Be patient and I'm sure someone will answer.
Darren.
Well, you don't have to be a moderator to help around here.
First, how are you detecting which direction the player is facing? How is your code set up? Once we know how you're detecting the direction, the rest is easy.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
add 'real (or integer) attribute' to actor
rule:
while character moves left
change real attribute to 1
rule2:
if real attribute = 1
loop while real attribute = 1
spawn actor infront of actor
do the same for right, except make real attribute 2
if you want your actor to shoot as soon as the game starts, make the actor face left to begin with, and change the real attribute to default 1.