moving 2 actors on x axis

jomediajomedia Member Posts: 18
edited April 2012 in Working with GS (Mac)
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

Best Answer

  • JohnPapiomitisJohnPapiomitis Posts: 6,256
    Accepted Answer
    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

Sign In or Register to comment.