Fire Button

jasmine12345jasmine12345 Member Posts: 39
edited November -1 in Working with GS (Mac)
I have created 2 buttons that will be placed on the phone screen one will fire a rocket and the other will fire a bomb i'm not sure how to create it, this is kind of the effect i want
http://gamesalad.com/game/3420
any help would be greatly appreciated
thank you

Comments

  • simo103simo103 Member, PRO Posts: 1,331
    You will need to create two attributes one say RocketFire the other BombFire and make them boolean

    In your Rocket button put if actor touch is pressed
    then a behavour change attribute RocketFire to True

    Same with the Bomb button but change attribute Bombfire to true.

    then in your rocket actor you might put a rule if attribute RocketFire is true then behavour spawn rocket. Also add a change attribute in that rule to change RocketFire back to false.

    Repeat for Bomb actor.
  • jasmine12345jasmine12345 Member Posts: 39
    simo103 said:
    You will need to create two attributes one say RocketFire the other BombFire and make them boolean

    In your Rocket button put if actor touch is pressed
    then a behavour change attribute RocketFire to True

    Same with the Bomb button but change attribute Bombfire to true.

    then in your rocket actor you might put a rule if attribute RocketFire is true then behavour spawn rocket. Also add a change attribute in that rule to change RocketFire back to false.

    Repeat for Bomb actor.

    great thank you sound advise
    how would i be able to create a rocket every time i press the button
Sign In or Register to comment.