GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Problem with unpausing my game.

FPGamesFPGames Posts: 58Member
edited December 2012 in Working with GS (Mac)
I'm creating a cannon game.The rule is this when touch is released shoot cannon ball, but when i unpause my game the cannon ball gets shoot with out doing nothing.i dont know what is the problem.

Comments

  • SlickZeroSlickZero Houston, TexasPosts: 2,870Member, Sous Chef
    Possibly because when you unpause the game there is a "when touch is released" rule that registers?

    I have no friends. I'm a loser that makes video games all day. Will you be my friend?

  • FPGamesFPGames Posts: 58Member
    edited December 2012
    how can i solve it.
  • tatiangtatiang Posts: 11,791Member, Sous Chef, PRO, Senior Sous-Chef
    Post the rules for your cannon shooting (or cannon ball moving) and for pausing and we can figure out the problem.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • FPGamesFPGames Posts: 58Member
    The rule to shoot the ball is: When touch is released shoot ball.
    To pause is: When touch is released pause game.
    To unpause is: When touch is released unpause game.
  • tatiangtatiang Posts: 11,791Member, Sous Chef, PRO, Senior Sous-Chef
    I can't really tell from what you wrote. I know it can be time-consuming to type out the full rules, so sometimes a screenshot or video is better. If you'd like to compress your project file into a .zip file, upload it to a file-sharing service and then send me a private message with a link to download it, I can help you more. Or you can post screenshots/video of the rules so it's clearer.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • FPGamesFPGames Posts: 58Member
    well, the rule to shoot the ball is when mouse button is up shoot the ball.To pause the game is when touch the pause actor is released pause the game. and lastly when touch the unpause actor is released unpause the game.But as i said when i unpause the game the ball shoots with out doing nothing.Thanks for answer.
  • tatiangtatiang Posts: 11,791Member, Sous Chef, PRO, Senior Sous-Chef
    When Touch is Released is different from When Mouse Button is Up. Touch means that the actor was clicked/tapped, while Mouse means that the screen was clicked/tapped anywhere. The two conditions work on both a computer/website and a mobile device.

    To fix your problem, change the rule to When Touch is Released. If you can't use Touch, then you may have to build in a timer that changes a boolean value (e.g. game.CanShoot) after a brief time after the Unpause action in order to prevent unintentional firing (twss).

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • FPGamesFPGames Posts: 58Member
    Thanks.
This discussion has been closed.