Set timescale of browser object?

0 favourites
  • 6 posts
From the Asset Store
10 Beautiful Pokemon-like Building Pixel Art Sprite Sets
  • Is the browser object affected by timescale and if so, how do I set the fullscreen changing function to ignore the timescale of game, ie: if it is paused?

  • The browser object uses the "blur" action to suspend it (and the "focus" to re-activate it), its not effected by the layout timescale.

  • The browser object uses the "blur" action to suspend it (and the "focus" to re-activate it), its not effected by the layout timescale.

    Strangely, when I have the timescale paused, the browser object doesn't switch back when I have a 0.2 second pause to allow it to change the scaling mode before it goes back to fullscreen. It works using delta time, but it's buggy and gets stuck on scale inner (I have to blindly switch modes again before it shows up again).

    EDIT: After further testing, yes, using delta time to switch scaling modes and changing disabling fullscreen to reenabling fullscreen (to allow the change) doesn't work. The switch works fine with 0.2 second game between the switch and timescale at 1.0, but doesn't work properly with timescale set to 0 and using delta time.

  • The timescale has no impact at all on the Browser object. The system "Wait" action will last infinitely long if the timescale is 0, because no time is passing for the timer that measures the pause.

  • The timescale has no impact at all on the Browser object. The system "Wait" action will last infinitely long if the timescale is 0, because no time is passing for the timer that measures the pause.

    Ashley That's correct, which is why I used delta time, but that doesn't work properly when going back to full screen.

    EDIT: Hmm, I made a test and this DOES work, so I'm not sure why it's broken in my actual game <img src="{SMILIES_PATH}/icon_e_confused.gif" alt=":?" title="Confused"> https://www.dropbox.com/s/15u18h551xo1v ... nTEST.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Tried using a constantly adding variable with a check after a certain total and I can't get it to work properly unless I use a full timescale, maybe it's the pause plugin?

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