Unpause has bug

jasonshowjasonshow Member Posts: 71
edited November -1 in Tech Support
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.

Comments

  • ChaserChaser Member Posts: 1,453
    It's not just that the shorter distance the actor has to fall has created less of a bounce
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    jasonshow said:
    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.

    Create a boolean called game.paused
    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.
  • jasonshowjasonshow Member Posts: 71
    thanks scitunes!

    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.
Sign In or Register to comment.