Enemy actors turn around whenever collide with wall?
ragg
Member Posts: 65
hi guys,how to make this works?
here is how i tried:
for the movement rule:
when 'face left' is true & 'on the ground' is true, move 180* speed 50
when 'face left' is false & 'on the ground' is true, move 0* speed 50
for the collision rule:
when collide with wall & 'face left' is true, change attribute "face left' to false.
when collide with wall & 'face left' is false, change attribute "face left' to true.
but the actor cannot turn when it hit the wall,and keep moving to the left.
help pls...thanks
here is how i tried:
for the movement rule:
when 'face left' is true & 'on the ground' is true, move 180* speed 50
when 'face left' is false & 'on the ground' is true, move 0* speed 50
for the collision rule:
when collide with wall & 'face left' is true, change attribute "face left' to false.
when collide with wall & 'face left' is false, change attribute "face left' to true.
but the actor cannot turn when it hit the wall,and keep moving to the left.
help pls...thanks