Multitasking, how to make app reset

The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
edited November -1 in Tech Support
Greetings all,

Does anyone know how to make a game reset when you back out of it by hitting the home button on the device? I want my game to restart and not stay static by multitasking in the background.

Thanx

D

Comments

  • DrGlickertDrGlickert Member Posts: 1,135
    Well, there is a "Game Reset" behavior. Is that what you're looking to do?

    Rule; when touch is pressed & inside then reset game.
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    It can't be done right now. It will always pause when in multitasking mode.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    DrGlickert said:
    Rule; when touch is pressed & inside then reset game.

    Hey sorry to hijack this topic but I see a chance to help correct a lot of ppls error in their code here.

    I see this a lot with the projects I help ppl with. so I want to help clarify things for everyone that doesn't know.

    "When touch is pressed" means touch is pressed inside the actor. there is no reason to add the inside condition to your rules for basic presses. you are just adding an extra condition for the engine to check for and probably adding a minuscule amount of memory usage to the game engine.

    "When touch is inside" simply means any time the touch moves inside the actor. so either the touch can press on an actor or the touch can swipe inside the actor. either will trigger that condition. but if you only want a press on the actor to trigger it then you only need "touch is pressed "

    I feel like im starting to ramble on so i'll cut it off here.

    Hopefully this helps some of you guys.

    Aaron

    ___________________________________________________________________________________
    TEMPLATES AND PROJECT HELP BY TENRDRMER. CLICK HERE!!!

    AppSolute Entertainment on Facebook
    AppSolute Entertainment on iTunes
Sign In or Register to comment.