Stop a interpolate behavior accelerating

GuaveMediaGuaveMedia Member, PRO Posts: 1,262
edited November -1 in Working with GS (Mac)
Hey,

I try to make an actor followed by an other one, so I use for the following actor the behvaior interpolate, but somehow the speed gets more and more fast when moving ...

What's causing this?

Thx Alex

Comments

  • LiquidGameworksLiquidGameworks Anchorage, AKMember, Sous Chef Posts: 956
    In the interpolate rule, are you using "self.velocity" in any way?
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Yes!
  • applaudmobileapplaudmobile Member Posts: 208
    don't do anything like

    interpolate self.att to self.att+10

    You'll get undesired results since the interpolate rule is changing at both ends constantly
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    yep like applaudmobile said since the value in the interpolate is constantly changing threw the rule interpolating to something+something it will change the values constantly and give unwanted results. If you want to interpolate to + somethign you use a attribute and set it up like so.

    New Attribute set to whatver you want to interpolate to. in this cause you would set the attribute to ten.

    then in you interpolate behavior interpolate attribute+new attribute
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Thanks for replying but I don't understand what you're trying to tell me...

    I should add a new attribute and set the value to the x position I want to interpolate and then in the interpolate behavior just say what?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    say your trying to interpolate to a attribute+10

    You make another attribute called interValue or whatever you want, and set it to what you wanted to add in the interpolate, in this case 10. So set that attribute to 10

    then in your interpolate behavior interpolate self.position.x+interValue

    replace the self position x with whatever your doing i just used that as an example
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    I just want the actor to move from one side to the other side of the scene, only changing x-position!

    Is this the only way or? Just asking if...
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    i think im not understanding whats going on

    so cant you just interpolate self position x to whatever position?
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    I thought of this first but the problem is that when I set duration to whatever, the actor accelerates more!

    That's the only problem.
Sign In or Register to comment.