How do you pause the physics? I am trying to do a manual pause function (stopping animation, disabling groups etc), but how do I stop the physics also and "pause" them and then resume it when the game is unpaused?
Pausing Physics?
Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.
A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.
Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!
Clickteam.
A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.
Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!
Clickteam.
-
-
I store their velocity in a value on the pause, set it to 0, then set their velocity to their value on resume. I'm not exactly sure what it's called.. I think it's velocity off the top of my head.
-
I tried setting velocity to 0 but it does not seem to do anything then to stopping the physics from working. the object still keeps moving
-
Perhaps it's linear velocity?
-
Is setting linear velocity not in the individual object? There must be a way to pause the whole physics engine like in normal box2d? If you adjust individual objects how do you restore their motion after the pause is over without affecting their movement?
The one event i am trying to modify is the "engine iteration" in the physics "world" event. That sound like the right place to adjust things, but i dont see how to make it work
-
Try setting gravity to zero when you want them to pause, then back to what it was before to unpause.
-
seems like the ability to pause the physics engine would be a nice feature request.. I don't think there's a simply on/off way to do this.. I'd say you'd have to store every movement variable into a variable of each object and then resume them when you unpause.
-
Very strange if there is no pause function. Do anyone have an example on how to store the movement and then resume it?
-
If it is a PC application, TimeX extension should let you pause the application, even with physics.
-
Tried setting the standard speed completely to 0?
Might work...
EDIT: Yup it works, just go to movement, set speed and set it to 0, the object will stop :3
2EDIT: Gravity and everything will still affect the object, you might need to get the gravity to 0 and angle forced to a value. -
I can set the speed and gravity to 0 and store the value, but when "starting" again the object behaves strange (going staight to the right)
-
Oh right, maybe try saving all things for the object (speed angle and such) and switch it to another movement (non-physic static) and when going back to the physic static load all values back. Otherwise, a stop & start feature would be handy
-
I tried but could not get it to work If anyone can get it to work or know of a way to pause the iterations i would be grateful
-
This what you're looking for?
Press Ctrl to pause/unpause the physics.
-
Maybe like this : Pause with the help of an Modal Sub-App
Please login to see this attachment.
Edit : Press SPACE to pause
-
Both examples work very well
-
The subapp version won't work on android runtime.. but game masters seems to do it.
-
Here is also something to try : Please login to see this link.
-
got this to work for most part the only problem I have now with this is making the object rotate right after they are unpaused. like a box spinning in water it it move correcty but it' won't start rotating right.
(update) WOO HOO GOT IT!
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!