How do I Slow Down to Stop

0 favourites
  • 2 posts
From the Asset Store
Set of tiles to create a map for top-down games with island theme
  • I'm making a game where I would like the game action to slow down once the GAME OVER text appears, and then eventually the game action stops. Then the player can either restart or go the main menu. I'm aware of the Time Scale feature so I'd like to know what events I'd need to accomplish this.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The easiest way is to have a variable set when your condition is met (ie. gameover=1), then use system set timescale: value.

    gameover=true

    [System:Compare variable (gameover=1):]

    System Set TImescale 50

    Wait 1

    System Set Timescale 40

    Etc

    Etc

    Or better yet, make a function that reduces a Timescale variable by 1 each .1 seconds and then simply call the function when gameover=1 and set timescale to the timescale variable so it grinds to a smooth stop. This would allow you to use a compare on the timescale variable as well so when timescaleVar=0 trigger GAME OVER.

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