does the interpolate behavior run to completion?
bernardo.chuecos
Member, PRO Posts: 75
Lets say I have an interpolate behavior inside a rule. If the rule stops being true and the interpolate behavior has not finished, will it finish regardless or stop where it was?
Comments
You can stop an interpolation by using an attribute:
http://forums.gamesalad.com/discussion/comment/458449/#Comment_458449
Or you can make your own interpolate:
http://forums.gamesalad.com/discussion/54962/make-your-own-interpolations/p1
Here's another interpolate method that you can stop whenever you like.
Rule: While self.X < 400
Constrain self.X to self.X+1
This example will interpolate an actor's x position to x400 at a speed of 60pps, You can wrap this in a rule so it only runs when you want it to, and it will stop running (and wait at whatever value it got to) when that rule is false, make the rule true again and the interpolation will continue.