interpolate tip needed, ignores bounceable objects

BrackAttackBrackAttack Member Posts: 22
edited January 2012 in Working with GS (Mac)
I need my main actor to chase a moving target, but I also need the 'move to' behavior to be interrupted under certain conditions. I switched to interpolate x,y but the actor ignores bounceable objects, passing through walls and such to get to its target. What could I do better?

Comments

  • MotherHooseMotherHoose Member Posts: 2,456
    edited January 2012
    Interpolate is a priority behavior … it runs to completion … and while on its mission ignores everything!

    changeAttribute: self.Motion.Linear Velocity.X To: 100
    changeAttribute: self.Motion.Linear Velocity.Y To: 100
    the Motion attribute will accept collision events/ other events
    then you can changeAttribute self.Motion.Linear Velocity.X To: 0

    @};- MH
Sign In or Register to comment.