Pause a physical game?

0 favourites
  • 9 posts
From the Asset Store
Make your combats so much more realistic with this Sounds! :D
  • Hello,

    I make a game with a ball. The ball is rolling:

    <img src="http://www.freebits.nl/images/762construct_2.bmp" border="0" />

    I want to make a pause option. If you set the game to pause, i make the ball immovable. If you stop the pause, i make the ball again movable. But if the ball is at the position H, the ball stops with rolling. How can i make in this situation a pause option?

    Thnaks

  • One option is to use the action "Set immovable" to "immovable". This freezes the physics object. And you can make it move again with the same action and set the object to "Movable". But this option doesn't keep any linear or angular velocities.

    You can also set the time scale to 0, that will pause all objects in the layout, and when you want to "unpause" you just set the time scale to 1.

  • One option is to use the action "Set immovable" to "immovable". This freezes the physics object. And you can make it move again with the same action and set the object to "Movable". But this option doesn't keep any linear or angular velocities.

    You can also set the time scale to 0, that will pause all objects in the layout, and when you want to "unpause" you just set the time scale to 1.

    Thank you! It works!

  • You really should just set the time scale to 0 to pause. It will make your life so much easier.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sorry to revive the old thread, but is there any way to pause physics objects other than set immoveable, set time scale?

    In my game, when you press the pause button, all the physics should paused and then a menu screen moving up using lerp. So i cant use timescale because it pause even the menu screen. And the "set immoveable" is very buggy when you pause and unpause rapidly.

  • You can set the time scale for individual objects. So you could set the game time scale to 0 and then set the menu to 1.

  • ramones: sadly time scale for object does not affected physics object.

  • hylists Hmm I see what you mean, unless physics mode is set to framerate independent. But what about setting the menu timescale to 1? Unless the menu is a physics object too?

    pauseMenu.capx (r102)

  • ramones: Wow it works, much thanks! <img src="smileys/smiley42.gif" border="0" align="middle" />

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