Interpolate with Pause?

DrGlickertDrGlickert Member Posts: 1,135
edited November -1 in Working with GS (Mac)
So I have an interpolate feature that takes a game.attribute from 50 -> 500 over 5 minutes.

I'm trying to implement a pause feature that will have a "restart game" button in it.

I click on my pause button (pause comes up), then I click on the "restart game" button (game restarts), HOWEVER, the interpolate function appears to finish even if the 5-minutes isn't up. So my speed on the restart is at 500 instead of 50.

Is this a common problem? I created an actor that changes the attributes when the scene starts but that doesn't seem to help it at all.

Any ideas? You think i need to use more rules with my interpolate functions or something?

Comments

  • simo103simo103 Member, PRO Posts: 1,331
    Hey Doc try searching 'Cancel Interpolate' in the GS creator and double click the template that ternrdrmer kindly posted and I think it may help you cancel the interpolate and then you can reset it. (I don't know if it applies here because I didn't poke around in it but hope it helps).
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Hey Doc. give that method a try but I think you may still run into issues cause my cancelation method relies on over riding the interpolate long enough for the original one to run out. Now that i'm thinking about it though it could work as long as another interpolate starts as soon as the level is reset. it would still over ride the first one.

    hit me up if you need and extra set of eyes on it. but the more I think about it that demo should help.

    ___________________________________________________________________________________
    Project Help from Tenrdrmer Click Here

    GS BubbleBall Template HERE!!
    Stacks Level Selection Template HERE!!
    Expanding Option Menu Template HERE!!
    Tenrdrmer's Menu # 3 HERE!!
    Menu #4 - Level Banners HERE!!
    AppSolute Entertainment on Facebook
    AppSolute Entertainment on iTunes
  • DrGlickertDrGlickert Member Posts: 1,135
    Thanks guys. I'll check that one out and see what I can come up with. I'll let you know if I need any more help on this one.
  • DrGlickertDrGlickert Member Posts: 1,135
    I got it to work. Thank guys!
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Anytime. :)
Sign In or Register to comment.