Pause the game

RastaRiseRastaRise Member Posts: 52
edited November -1 in Working with GS (Mac)
I have a pause button in the game and drag and drop moveable actors, also actors that spawn, and a timer how do i make it so that when you press the "Pause button" the game pauses?

any help? i really need it my game is almost finished. I would really appreciate it!!

Comments

  • RastaRiseRastaRise Member Posts: 52
    i looked at the Wiki page for the pause game tutorial but it doesn't help me at all
  • quantumsheepquantumsheep Member Posts: 8,188
    Welcome to my own private section of hell:

    http://gamesalad.com/forums/topic.php?id=5875

    http://gamesalad.com/forums/topic.php?id=7277&page=2

    And a workaround demo here:

    http://gamesalad.com/game/play/48909

    There seems to be little movement on a 'proper' solution though. The world is more interested in iAds it seems!

    Cheers,

    QS :(

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    quantumsheep said:
    The world is more interested in iAds it seems!
    QS :(

    Yup, I don't see the attraction myself; or any financial benefits for that matter; a couple of cents per click? Why, we could make each, well, at least $5.58 per year extra! ;-)

    ---------------------------------------------------------------
    Spiral Gyro Apps

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • AfterBurnettAfterBurnett Member Posts: 3,474
    We NEED pause. My game is a fast paced shooter and I know I'm gonna get a heap of 1 star reviews thanks to the lack of pause. I downloaded the "workaround". My head imploded.
  • chosenonestudioschosenonestudios Member Posts: 1,714
    I agree that we need a pause system... Probably 1/3 of my game was devoted to implementing pause, when using complicated patterns and timers.. It can get very tricky... But the old pause system... "Preserve Scene" isn't going to cut it... For my next game theres only going to be one scene and for all my following games I will use the least amount of scenes possible.. People don't understand when are games load for 10s and then they need to load again!?? I think thats how long P v Z takes to load and that is a massive game and it only loads once... I really cant even think about the thought that people have to wait for a game to load "pause" So there really needs to be a legitimate pause...

    Side note, with multitasking out on all 4.0 devices (including 2nd gen, with a workaround) that should act as a pretty decent pause. Not perfect, but it works...

    We want pause, but not change scene pause!
  • quantumsheepquantumsheep Member Posts: 8,188
    chosenonestudios said:
    I really cant even think about the thought that people have to wait for a game to load "pause" So there really needs to be a legitimate pause...

    Side note, with multitasking out on all 4.0 devices (including 2nd gen, with a workaround) that should act as a pretty decent pause. Not perfect, but it works...

    We want pause, but not change scene pause!

    Yes, hopefully multi-tasking will act as a workaround, when Gendai chuck it in!

    However, I don't understand the preserve scene pause hate. In all honesty, it never took more than a second to load the pause scene for me, and to go back to the original scene.

    Hang on, let me try it out...

    Actually, on a 3GS it takes *less* than a second to switch from the main game to the pause screen, and less than a second to switch back.

    So yeah. I don't how *you* used the preserve scene pause, but it worked wonderfully for me...

    Cheers,

    QS

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • chosenonestudioschosenonestudios Member Posts: 1,714
    I dont have it in any of my games... If its not instant if doesn't make me happy
  • quantumsheepquantumsheep Member Posts: 8,188
    There's no pleasing some people, eh?

    Here's a vid of it in action on a first gen ipod touch on 3.1.2 firmware:

    http://files.me.com/qsheep/gzqd58

    I'd kill to get that functionality back, I really would... ;)

    QS

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • chosenonestudioschosenonestudios Member Posts: 1,714
    Very impressive QS, but I'd have to say...

    MINE PAUSES FASTER!

    Question, nevertheless pretty speedy, how many scenes are in your game?

    Edit: Not sure, but maybe I ground it into my head, that if theres one scene, it automatically makes it better.... Maybe I just don't like the thought of two scenes...
  • quantumsheepquantumsheep Member Posts: 8,188
    chosenonestudios said:
    Very impressive QS, but I'd have to say...

    MINE PAUSES FASTER!

    Question, nevertheless pretty speedy, how many scenes are in your game?

    Edit: Not sure, but maybe I ground it into my head, that if theres one scene, it automatically makes it better.... Maybe I just don't like the thought of two scenes...

    Would you like a medal for your pause speed? :D

    As to how many scenes, I just checked - it has 19.

    Cheers,

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • chosenonestudioschosenonestudios Member Posts: 1,714
    quantumsheep said:
    Would you like a medal for your pause speed? :D

    May I, Please?

    Thinking though, it might take considerably longer on a game with only 2 scenes (Game + Pause) ....

    So I'm still voting for a better pause system :D
  • quantumsheepquantumsheep Member Posts: 8,188
    chosenonestudios said:
    Thinking though, it might take considerably longer on a game with only 2 scenes (Game + Pause) ....

    Or it may be instant. We can't ever know because we can't test it.
    chosenonestudios said:
    So I'm still voting for a better pause system :D

    You'll get no argument from me - any pause system would suit me fine :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • chosenonestudioschosenonestudios Member Posts: 1,714
    Haha agreed ;) +1

    -Will
  • RastaRiseRastaRise Member Posts: 52
    wow this started quite a predicament. but thank you so much for all of the support my game is so close to being finished all i have to do is add pause make my game spawn more blocks and have the spawned actors appear infront of the "sbox"'s or placing squares then add an online high scores(which i dont know if thats possible). Then I have to make sounds. if you like raasta you will love my game!
  • RastaRiseRastaRise Member Posts: 52
    so if anyone could help with any of that i would love it!!
  • chosenonestudioschosenonestudios Member Posts: 1,714
    basically, just create a boolean.. game.pause on

    then wrap all your moving objects, time, score spawners. etc. in a rule that checks to make sure game.pause on is false...

    So make a button, when touch is pressed change game.pause on to true...

    Instant pause...

    Good Luck!
  • AfterBurnettAfterBurnett Member Posts: 3,474
    But what do you do with it? Simply setting an attribute to GamePause = true won't pause the game. You'll have to assign rules to every object in the game, how is that done> For a moving boject do you do "if GamePause = true, change velocity to 0"? If so, how do you get the objects moving back on track from where they were? Also, I have a heap of timers like "in 35 seconds, spawn enemy X". How would pause work there? I'd have objects being spawned while the game was "paused" and even if I set the timers to spawn only if pause - false, the timers are still counting so the end of the stage would be reached without even playing! There is no quick or easy way for games involving timers.

    WE NEED PAUSE!!!!
  • RastaRiseRastaRise Member Posts: 52
    that is true. I cannot figure this out. We need a pause behavior and quick this is getting ridiculous. I have so many actors being spawn and a timer and I cannot get the game to even pause. I want all of the actors to pause in their position and for the time to stop.
  • RastaRiseRastaRise Member Posts: 52
    for this to being a game making program and to have all of these "behaviors and abilities" you would think they would have a "pause" behavior which is a necessity in games...
  • RastaRiseRastaRise Member Posts: 52
    Ok, i know this is not probably new to you guys but intergers are your best friend for pausing time. I think that was posted earlier
  • quantumsheepquantumsheep Member Posts: 8,188
    rastar said:
    for this to being a game making program and to have all of these "behaviors and abilities" you would think they would have a "pause" behavior which is a necessity in games...

    They used to have this feature.

    I'm bringing it back. One post at a time :D

    QS

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • RastaRiseRastaRise Member Posts: 52
    ok good because this is really frustrating me. I have so many things going on and all i want is a behavior that can have a button press it pause the game then press it again and it resumes it. Really what is a game without Pause? I'm not trying to start anything by the way but if you could please help me with this
  • quantumsheepquantumsheep Member Posts: 8,188
    The most I can do is point you in the direction of my original post in this thread, which had a link to a workaround I was kindly sent by CodeMonkey.

    Please be warned; apparently it can cause cranial implosion...

    Once you've had a look at that, and if you're head's still in one piece, please feel free to post your request here: http://gamesalad.com/forums/topic.php?id=5875

    And remember to 'Like' my original post there.

    Cheers,

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • RastaRiseRastaRise Member Posts: 52
    i click "like" on the thread. Could you do a favor for me and just make a demo that pauses the time? I couldn't figure yours out
  • quantumsheepquantumsheep Member Posts: 8,188
    I couldn't figure mine out either! Like I said, it was done for me by CodeMonkey.

    Sorry!

    QS :(

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • RastaRiseRastaRise Member Posts: 52
    it's all good no worries maybe i'll figure it out in the morning... thanks for the support
  • quantumsheepquantumsheep Member Posts: 8,188
    Good luck, and welcome to the crusade :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • AfterBurnettAfterBurnett Member Posts: 3,474
    Funny, I have looked at loads of Codemonkey's stuff... it's always much too complex. For example, the joystick demo... WTF?!?!?! Another member on here (jstrahan) sent me a MUCH better version with only about four rules! Shame the official stuff is just way too complicated, doesn't help with learning at all.

    For the most part, I've had to work everything out for myself... which is actually really fun... so I guess after all that, I should thank Codemonkey for being so god-damned complex! LOL.

    I think I may have a much simpler idea for a pause... but it probably won't work. I'll give it a whirl and implement it in my game once it's all done and dusted... again... if it works ;-)
Sign In or Register to comment.