Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Night Creeper
15
Years of Service
User Offline
Joined: 21st May 2008
Location: in front of the computer
Posted: 11th Aug 2008 02:17
is there a command that pauses physic? and when playing again get all angles and rotations ect and resume what it was doing before i paused it?
FINN MAN
20
Years of Service
User Offline
Joined: 2nd May 2004
Location:
Posted: 11th Aug 2008 16:25
Try not calling physics update. And then call it when you are done pausing them game.

Bad Monkey
17
Years of Service
User Offline
Joined: 1st Jan 2007
Location:
Posted: 12th Aug 2008 06:27
Don't call phy update to pause simulation.

do
if spacekey() = 0 then phy update
sync
loop


Visit my website:
http://www.artistsareus.com
Nano brain
16
Years of Service
User Offline
Joined: 7th May 2008
Location:
Posted: 12th Aug 2008 19:32 Edited at: 12th Aug 2008 19:33
Bad Monkey,

What!? Given your method, the user would have to hold down the space key throughout the game for the physics to work. That doesn't make much sense.

FINN MAN had it right to begin with. To pause physics, don't call phy update.
Sixty Squares
17
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 13th Aug 2008 18:36
Quote: "Given your method, the user would have to hold down the space key throughout the game for the physics to work."

The opposite. The user would hold down space for the physics not to work.

Nano brain
16
Years of Service
User Offline
Joined: 7th May 2008
Location:
Posted: 13th Aug 2008 23:36 Edited at: 13th Aug 2008 23:37
Hmmmm...didn't notice the zero. Good call 60.

Night Creeper,

To further this, you should try this to pause:

Login to post a reply

Server time is: 2024-05-17 16:27:02
Your offset time is: 2024-05-17 16:27:02