How do I give the APP keep running @ background?

  • Hello!~

    may i ask how can i keep my app running background?

    (player keep moving when Websocket.io)

    1:nodewebkit

    2:crosswalk@android

    3:ios browser

    Thankyou

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You can't. Browsers and Ashley have disabled JS execution when the game doesn't have focus. I totally agree though. I would prefer to set any of my network games to be still running even in the background.

  • You can't. Browsers and Ashley have disabled JS execution when the game doesn't have focus. I totally agree though. I would prefer to set any of my network games to be still running even in the background.

    OMG...

    this is really really suck!!!

    can SCIRRA just add a setting for user to enable background running?

    without this

    i can't done my Online Game

    Ashley

  • It would waste battery on mobile devices if this was widely used.

    The Multiplayer plugin is the exception - it can keep running if you are the game host, since otherwise it would kill the game for everyone connected - but apart from that, it's probably just obnoxious to the user to have a background tab keep consuming CPU and battery power.

  • It would waste battery on mobile devices if this was widely used.

    The Multiplayer plugin is the exception - it can keep running if you are the game host, since otherwise it would kill the game for everyone connected - but apart from that, it's probably just obnoxious to the user to have a background tab keep consuming CPU and battery power.

    I use my own design java websocket for my big online game

    i make it about half years

    I hope I can set background running myself

  • Are you really running a server from a C2 game? Using WebSockets usually means you have a seperate central server. It shouldn't matter if the client hangs when switching tab.

  • Are you really running a server from a C2 game? Using WebSockets usually means you have a seperate central server. It shouldn't matter if the client hangs when switching tab.

    Yes

    becoz this is a big online game

    C2 game<>websocket.jar<>C2 server

    this is my plan

    and working very well

    player can't cheat

  • Why not use the Multiplayer plugin?

  • Why not use the Multiplayer plugin?

    Too late..

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)