Enemy actors turn around whenever collide with wall?

raggragg Member Posts: 65
edited November -1 in Working with GS (Mac)
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
Sign In or Register to comment.