Spawned actor keeps moving

stanimationstanimation Member Posts: 406
edited November -1 in Working with GS (Mac)
Wuz up!! I cant seem to get a spawned actor to stop moving once killed. Any suggestions? This is what I have going on. Spawned actors enters the scene. I have another actor fire at it to kill it. Once the target is hit I change the animation(that works) and have the target destroyed in .5 seconds(that works too). The problem is I cant get the target to stop moving once hit. Any help would be greatly appreciated!!

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    clamp the actor's linear velocity to 0

    When killed is true
    self.Linear.X = 0
    self.Linear.Y = 0
Sign In or Register to comment.