Pause Button Problem (Please Help!)

NicholasSeahNicholasSeah Member Posts: 68
edited November -1 in Working with GS (Mac)
Hello All, I am making this cannon shooting game. I have this "pause" problem. When I click on the pause button, the cannon still shoots out the ball. How can I stop the cannon ball from shooting when I click on the "pause button.

I have tried Xarmian's advise, but the click area is only at the top left corner of the pause button. I want a bigger area for the pause button (size: 31 x 49 pixels) and the position of the pause button is X: 60 and Y: 299

Please help me

Comments

  • BreckenBrecken Member Posts: 143
    Try having an game.Shoot boolean attribute.

    when it = true, shoot , when game.shoot = false stop shooting.

    When pause button is pressed. Change attribute game.shoot to false
    also Pause Game.

    It also happend to me once and this was what I did.
  • NicholasSeahNicholasSeah Member Posts: 68
    Hi, how do you change the game.Shoot boolean attribute to either true or false?
  • BreckenBrecken Member Posts: 143
    Behavior Change Attribue

    select game.shoot and in the "to" field you simply write true or false

    PL
  • NicholasSeahNicholasSeah Member Posts: 68
    Thx :D
  • NicholasSeahNicholasSeah Member Posts: 68
    How do I do the stop shooting part?
  • BreckenBrecken Member Posts: 143
    You have to say on the cannon that it will only shoot when game.shoot = true. So when you press pause change this attribute to false:)

    If this does not help, you can mail me the file. I will help you for free:)

    pl.produksjon@gmail.com

    PL
  • NicholasSeahNicholasSeah Member Posts: 68
    Do I put the change attribute inside a rule like if mouse button is down, change attribute game.shoot to true then I put my fire behavior below it?
  • BreckenBrecken Member Posts: 143
    You have on the pause button

    when touch is pressed. Change attribue game.shoot to false

    PL
  • NicholasSeahNicholasSeah Member Posts: 68
    It doesn't work. Just to confirm, in the pause button there is a rule, when touch is pressed change attribute game.shoot to false and in the cannon there is a rule, when mouse button is down change attribute game.shoot to true and the cannon fire behavior below it, right?
  • BreckenBrecken Member Posts: 143
    Well i dont really understand how you have sat it all up. If you want please pm me a dropbox link with the file or send via mail:)

    PL
  • NicholasSeahNicholasSeah Member Posts: 68
    I have just send you a message to your gmail account, please go and check it out :D

    Thx :D
Sign In or Register to comment.