Change Actor Directions

crapscraps Member Posts: 353
edited November -1 in Working with GS (Mac)
I have a moving actor that moves left and up. As the actor is moving left and gets to a particular pair of (x,y) coordinates I want him to change direction and move up.

Here is what I did but it does not work. Help?

When All
- att - game.move = left
- att - self.position.X = 172
- att - self.position.Y = 164

Change Att - game.move to up.

What happens is the actor keeps moving left.

Comments

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    This is just a guess, but maybe the actor is not hitting the 172,164 mark exactly. Try using:
    - att - self.position.X > 172
    - att - self.position.Y > 164
  • crapscraps Member Posts: 353
    I forgot to post that - yes - I do have game.move rules (direction and speed)

    I will try that thanks.
Sign In or Register to comment.