moving 2 actors on x axis

hello guys
how u doing ?
i got new problem as usual xD
i want the Actor b follow actor 1 into the x axis and when it catch up with Actor a stop immediately
here's the file you can download it and check it by your self
http://www.mediafire.com/?dp3dwu6yrd5rr62
many thanks
regards
Joe
how u doing ?
i got new problem as usual xD
i want the Actor b follow actor 1 into the x axis and when it catch up with Actor a stop immediately
here's the file you can download it and check it by your self
http://www.mediafire.com/?dp3dwu6yrd5rr62
many thanks
regards
Joe
Best Answer
-
JohnPapiomitis Posts: 6,256
Make a real attirubte called playerX or whatever you want
In actor a constrain attribute playerX to self.position.x
In actor b have a rule when self.position.x does not equal playerX
interpolate self.position.x to playerX
Answers