Freeze layout for X seconds

0 favourites
  • 2 posts
From the Asset Store
Plugin Transition Layout C3. Layout opening and closing animation for C3. Quickly set up transitions between lay
  • Hello,

    When my game ends, I want to freeze the layout and all objects in it for X seconds.

    I tried to use the following:

    -Set time scale to 0

    -wait X seconds

    -Set time scale to 1

    The layout does freeze, but for some reason, re-setting the time scale to 1 doesn't un-freeze the layout.

    What am I doing wrong?




  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm suspecting that when you set your time scale to 0, the Wait action doesn't apply since the time scale is now at 0.

    You'd probably have a better luck creating some hidden sprite (let's name it "tim") and apply the Timer behavior to it.

    When you set the time scale to 0, do also apply the action System: Set object time scale to tim so it is at 1 (the object tim is "not frozen").

    Now start a timer that will last as long as you want.

    When the timer triggers, set the timescale back to 1.

    In theory, this should do the job.

    If you encounter further issue, consider posting your project for further inspection.

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