Making A fire button work
![tross99](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
Right now I have a ship that shoots lasers out of it but i want it so a fir button will shoot the lasers out of the ship. Thank You.
Best Answers
-
IsabelleK Posts: 2,807
This time question is better described - you are learning
Make a game boolean attribute. Put an actor in your scene, and put a rule:
If touch is pressed:
Change attribute game.Shoot to true
Otherwise
Change attribute game.Shoot to false
And in your ship actor, add additional rule:
If game.Shoot is true
Here goes the shooting the AA batteries powered laser rules -
IsabelleK Posts: 2,807
hey followed your template exactly but mine only shoots one laser at a time any ideas on this?
Make sure that you have change attribute game.Shoot to false in Otherwise section of the rule in the Shoot button.
Answers