Remove Pause from game on visibility changed

5 views
Skip to first unread message

Jacques Leemans

unread,
Sep 4, 2012, 9:41:17 AM9/4/12
to c2-deve...@googlegroups.com
By default the game pauses when it loses focus, this is normally preferred, but if you have a lengthy tutorial, you want to hide the game till the tutorial is over. To do this:
  • Open the exported index.html file in any text editor
  • Scroll down to the function OnVisibilityChanged()
  • In the if statement change cr_setSuspended(true); to cr_setSuspended(false);
Reply all
Reply to author
Forward
0 new messages