Unpause has bug
jasonshow
Member Posts: 71
my scene's set Y gravity to 1100.
my actors will bounce up and down.
the Pause works ok, everything stoped.
but when I touch the unpause button,everything bounce slowly,very slowly,
not the right speed.
can I fix it now ?
or wait for update ?
thanks.
my actors will bounce up and down.
the Pause works ok, everything stoped.
but when I touch the unpause button,everything bounce slowly,very slowly,
not the right speed.
can I fix it now ?
or wait for update ?
thanks.
Comments
Create a real called self.Yspeed in the falling actors
In the pause button you make put a change attribute - change game.paused to true
In the falling actor make a rule-
Rule - when game.paused is true
Change attribute self.Yspeed to self.motion.linear.Y
Then in the falling actor have a rule that says when game.paused is false
Change slef.motion.linear.Y to self.Yspeed
You may need to put the pause behavior in a quick timer to give the game time to assign the speed (not sure) You'll also need to have game.paused be set back to false in the unpause actor on your pause screen.
I haven't tested this so you may need to play around with it.
this is what I do before,but now I love to use Pause build-in function,quick and easy^^
I hope GS team will let pause function fit all situations.