how can i make an actor stop when it runs into another actor

AjBlueAjBlue Member Posts: 215
edited November -1 in Working with GS (Mac)
i need to make my enemy actor stop when it runs into another actor, and once the other actor is out of the way, for it to precede back on its corse. my enemy is running a accelerate, but everything i try results in the enemy getting bounce backwards instead of coming to a dead stop

Comments

  • DetheDethe Member Posts: 172
    use collide and change some of the things in physics to 0 for both of them
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Try when actor overlaps or collides with actor change attribute self motion linear x to 0
  • AjBlueAjBlue Member Posts: 215
    @JohnPap

    i tried this but because the enemy is running a accelerate it just gets slowed down then the accelerate overides it and it keeps going
  • AjBlueAjBlue Member Posts: 215
    nevermind, i put a collide in with it. it works now but im not sure about it restarting its speed once the object is clear
Sign In or Register to comment.