Hi everyone,
I am doing a pause function that I want to freeze everything in place. In the past Time Scale set to 0.0 did the trick, but this time I'm noticing that several things continue to move (things that are driven by every tick) such as "Pollution.X-5".
Any reason why some objects would keep moving? I am using tweenlite in some cases, but those are not the problem.. its definitely things motivated by "per tick" actions
you can see the pause problem here http://part12studios.com/temp/BeeGood5/
Thanks!
Caleb
Develop games in your browser. Powerful, performant & highly capable.
Hi everyone, I am doing a pause function that I want to freeze everything in place. In the past Time Scale set to 0.0 did the trick, but this time I'm noticing that several things continue to move (things that are driven by every tick) such as "Pollution.X-5". Any reason why some objects would keep moving? I am using tweenlite in some cases, but those are not the problem.. its definitely things motivated by "per tick" actions you can see the pause problem here http://part12studios.com/temp/BeeGood5/ Thanks! Caleb
Pollution.X-5*dt will work, and will also keep it at the same speed at lower framerates
ah cool i was thinking about using dt.. but hadn't gotten around to it.. I'll try that out!
Thanks,
To be correct, I think in your case, you want Pollution.X-5*dt*60
Basically, adding dt every tick will have add 1 every seconds at a timescale of 1
oh thanks! you just fixed the issue.. i thought there was something more too it but couldn't remember.. use *60.. very important