Info

Statistics

  • Download count632 total downloads
  • Latest download count 632 downloads of latest version
  • Average download count1 downloads per day average

Owners

Description

Force the game to periodically update in the background.

Example Files

Just a quick test for the addon and testing the one condition and the one action.

Discussion

  • 15 Comments

  • Order by
Want to leave a comment? Login or Register an account!
  • Was looking at this for a potential solution to get background audio for iOS. If added to the project as an object, it's enabled by default. I'm assuming I'd need a different solution for iOS background audio.

  • Ive just done a quick test with this as i am looking for a solution. I added a new item to a list (showing time) and I update it every:

    wallclocktime - lastTime >= 1 second

    I then export as HTML and install to homescreen on iOS and initially it works.

    However, if I leave it a while (2 minutes) and re-open it, it like catches up with its self and adds the N number of items (correct amount) to the list but all at the time of opening, therefore timestamps are all the same.

    So "something" is running in background and queuing all the actions up but then only executing them on re-opening?

    Any ideas?

    • Apps get throttled over time by the OS. Same happens with browser tab when you have them in the background. After a while, updates will get slower and slower. There is nothing you can do to fix this as far as I'm aware. There might be platform specific systems but I don't know if they would work.

  • Does it play audio in the background? Thank you!

    • Audio in the background is managed by the audio plugin and is unrelated to this addon

      • Thank you for the solution. I got it working after all and it's working nicely. The only feedbacks are that it doesn't minify the scripts in advanced mode (does in simple) and that it doesn't work in Web Export iOS (does in Android).

        Again, thank you. It's a nice plugin!

        Load more comments (2 replies)
  • Ty for this!

  • How to use it?

  • I wonder what is lastTime?

  • not running in the background when you minimize the application, the timer is supposed to tick, but timer not ticking in the background.

    drive.google.com/file/d/17Z1sPScD6gnFvge6ryJ7A9LsHFjf4Bfu/view

    • Run in background works within the limitations of the C3 runtime.

      When in background the time scale is set to 0 and it only ticks whenever the browser accepts to let it tick. Depending on the browser, this can happen around once a second.

      You will need to work around that until a better solution is found.

  • This is amazing! It's so useful for people not using the official multiplayer! Thank you so much!!