Making A fire button work

tross99tross99 Member Posts: 13
edited July 2012 in Working with GS (Mac)
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

  • IsabelleKIsabelleK Posts: 2,807
    edited July 2012 Accepted Answer
    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 ;)
  • IsabelleKIsabelleK Posts: 2,807
    Accepted Answer
    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

  • tross99tross99 Member Posts: 13
    thanks for the time but this isn't working nothing is happening when I hit the fire actor???
  • IsabelleKIsabelleK Member, Sous Chef Posts: 2,807
    edited July 2012
    Here is a simple template I made for you:
  • tross99tross99 Member Posts: 13
    thanks
  • creativeappscreativeapps Member Posts: 1,770
    @TheMoonwalls did you get my pm msg?
  • tross99tross99 Member Posts: 13
    hey followed your template exactly but mine only shoots one laser at a time any ideas on this?
  • PuzzlePlatformerManPuzzlePlatformerMan Member Posts: 23
    Hey, I am just asking this, because this is a gun shooting thread. How should I go about making a player shoot? Should I make the character and the gun separate, and then make an animation for picking up a gun on the floor? Or can I just make a character holding a gun as one picture? I'm worried that if I make the character holding the gun as one image, he'll look like he's shooting from his body, and not his gun. Would that happen?
  • J_PANJ_PAN Member Posts: 140
    just create a game attribute to know when you click
Sign In or Register to comment.