UnPause not working

I made a Pause butten and a UnPause button, so for the Pause button I made it so if pressed then Pause the Scene the game is on (IT WORKS (:) BUT! When I added this to the unpause butten: if pressed then unpause game it wont work.

TL;DR The game pauses, but doesn't unpause when I press unpause

(PLEASE HELP!)

Answers

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited February 2014
    lol... I've never seen a TL;DR for such a short post (47 words!).

    Without seeing your rules for pausing and unpausing, it's impossible to know what you've done wrong. Please either type out the exact rules or post a screenshot of them (see my signature below for instructions).

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

  • ultimaultima Member, PRO Posts: 1,207
    this is probably a stupid response, but is your un-pause button placed in "initial scene"?
  • PyritePyrite Member Posts: 47
    Yes
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Put a log debugging statement in each rule (pause and unpause) and then open the Debugger window to see if the rules are being triggered when you click the related button.

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

  • PyritePyrite Member Posts: 47
    Put a log debugging statement?
  • PyritePyrite Member Posts: 47
    Okay, I did, I checked debugger and it says nothing!
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    So that indicates that neither of your rules are firing. Now you have to figure out why.

    Make sure you haven't unlocked the actors on the scene (double click them on the scene to check).

    If you want, you can send me a link to download your file from a file-sharing site or post it here. Be sure to .zip the project file first. I'll take a look and let you know why it isn't working.

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

  • PyritePyrite Member Posts: 47
    Oh boy, my UnPause is unlocked. But, my Pause is locked :/ How to fix? and thanks! (:
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    An unlocked actor is an "instance" and has its own unique rules that are different from the prototype actor (the actor in the actors' inspector pane). To fix it, either click "Revert to prototype" or delete the actor from the scene and drag it back on. Be sure to check the rules of the prototype actor after doing that... one set of rules will remain but it may not be the set you thought you were editing.

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

  • PyritePyrite Member Posts: 47
    I did all of that, but it still doesn't work.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Sorry that we couldn't get it working.

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

  • PyritePyrite Member Posts: 47
    So, there is not way of making it work? ):
  • ultimaultima Member, PRO Posts: 1,207
    of course, there is, just upload your game somewhere, removing everything except pause/unpause rules and someone can help you sort it out, it's very easy task.
  • PyritePyrite Member Posts: 47
    Well, my game is like Flappy Bird but different. So, when I hit pause it pauses the bird itself and the whole scene. I already showed the Rules for the Pause and UnPause, if it should work it doesn't.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    You showed your rules but there is a larger context when you are developing a game. There are other actors, other scenes, etc. I can think of half a dozen reasons it might not be working but without the file I'd just be guessing. The only way to find the problem is to post or send (via private message) a link to download your file. If you prefer not to do that, it's fine.

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

  • PyritePyrite Member Posts: 47
    Okay, I'll send a file later.
Sign In or Register to comment.