Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Returning to game but it is closed - Question
Started by d.mach Nov 25 2019 02:25 AM

4 replies to this topic
returning system events close time
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

d.mach

[GLOBAL: userInfoPane.html]
d.mach
  • Contributor

  • 918 posts
  • Corona SDK

I got the following feedback from players:

 

I have long game levels which can be played in more sessions. The content of the game can not be saved. Now this is what happens: The players click the pause button and turn off the device to continue playing when they return BUT: Sometimes the game still is open and can be continued but sometimes it is not and can't.

 

I now wonder what this can cause this and how can I have an influence on keeping the game opened in the background all the time, so players can continue a started (and paused) game whenever they want?

 



[TOPIC: post.html]
#2

pixec

[GLOBAL: userInfoPane.html]
pixec
  • Enthusiast

  • 50 posts
  • Corona SDK

u cant control it. The os stops the app after a while of nothing happening. It is just an issue of how long it takes for the player to return, you cant influence it

[TOPIC: post.html]
#3

d.mach

[GLOBAL: userInfoPane.html]
d.mach
  • Contributor

  • 918 posts
  • Corona SDK

u cant control it. The os stops the app after a while of nothing happening. It is just an issue of how long it takes for the player to return, you cant influence it

 

Thanks for your fast reply. Do you have some details on how long this normally takes for the iOS to stop the game completely or how long it is safe to "pause" before the game get's closed for real?



[TOPIC: post.html]
#4

nick_sherman

[GLOBAL: userInfoPane.html]
nick_sherman
  • Corona Geek

  • 1,867 posts
  • Corona SDK

Depends, if the phone is low on memory and the user goes to another app that needs it, then immediately....

 

Safer to just save the game state upon pause/suspend if it's really necessary that players must be able to resume. 



[TOPIC: post.html]
#5

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,274 posts
  • Corona SDK

My game does not have a time limit and the game can run for a long time. People sent a few complaints that after being on call they would go back to their in progress game and it would be gone. I save the state of the game in a json file and then load up the game when they get back. It is an option you can think of, but might not work for your particular game.




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: returning, system, events, close, time