Home Button

ForteForte Member, PRO Posts: 297
edited November -1 in Working with GS (Mac)
Hi everyone,

Is there a way to have an attribute changed when the home button is pressed?

Cheers, Dragokillz

Comments

  • DimensionGamesDimensionGames PRO Posts: 993
    Hope this helps! :D

    Rule

    Actor receives event touch is pressed

    Change Scene

    Go to scene home
  • chosenonestudioschosenonestudios Member Posts: 1,714
    @Possessive I dont think you read his question...
    Dragokillz said:
    Hi everyone,

    Is there a way to have an attribute changed when the home button is pressed?

    Cheers, Dragokillz

    No, that is not currently possible :/
  • iDeveloperziDeveloperz Member Posts: 1,169
    And it won't be. How would you leave the application if the home button does something else?
  • chosenonestudioschosenonestudios Member Posts: 1,714
    iDeveloperz said:
    And it won't be. How would you leave the application if the home button does something else?

    Yes it is.. For Xcode apps when the home button is pressed.. It saves the state to multitask.. Like it does on ours except we just don't see it happen... But Xcode programmers have to add this in..
  • ForteForte Member, PRO Posts: 297
    Maybe gamesalad might have future update to do so, so when the button is pressed, it pauses. Like on Angry Birds. When the home button is pressed, you come back to the game and it is paused.
  • chosenonestudioschosenonestudios Member Posts: 1,714
    Dragokillz said:
    Maybe gamesalad might have future update to do so, so when the button is pressed, it pauses. Like on Angry Birds. When the home button is pressed, you come back to the game and it is paused.

    It already does this. Remember we have multitasking :D
  • ForteForte Member, PRO Posts: 297
    How do you do it?

    I'm not sure if you got what I meant, I meant that when the home button is pressed, yes when you start it up again it is back to where it was, but change an attribute to pause the game. So you don't get back and you are getting pwnd lol
  • chosenonestudioschosenonestudios Member Posts: 1,714
    Dragokillz said:
    How do you do it?

    I'm not sure if you got what I meant, I meant that when the home button is pressed, yes when you start it up again it is back to where it was, but change an attribute to pause the game. So you don't get back and you are getting pwnd lol

    Oh sorry, I assumed you were talking about multitasking haha! Yeah it would be nice to be able to pause it too!
  • mangaroomangaroo Member Posts: 419
    sorry to bring up old posts but im currently having a problem with the game being just stuck (not paused) after multitasking - i haven't added any attributes to combat it but i dont see many posts about it recently...does anyone know how to solve it?

    something like while game is running Every 3 seconds unpause game lol?
  • mangaroomangaroo Member Posts: 419
  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    Unfortunately we can't do anything about it yet, if we could edit the info.plist file, we could, but we can't just yet and I doubt GS will add that feature.

    If we could edit it, we could add things like UIApplicationExitsOnSuspend which would exit the app instead of pausing for multi-tasking. We could also add the time & date bar at the top, play with orientation etc. This though would most likely make everything rajjed because the GS servers will be telling the info.plist file to do one thing and we tell it to do another. This is probably why GS won't add this ever.

    Not quite sure what your problem is, I've not had it before. What iOS version are you running?

    I thought that it could be the multi-tasking interrupting interpolate functions but I just tried crashing one of mine whilst I knew a few interpolates were running but it carried on normally.

    Is it every part of your game that does it or just specific parts?

    What rules and behaviours are running when you get the crash?

    Ace
Sign In or Register to comment.