don't move!!

toki6toki6 Member Posts: 40
edited November -1 in Working with GS (Mac)
Hello everyone, I have a problem, I have an actor who chases another actor, but I do not want to go up and down unless it touches another object, how can I prevent you from moving up and down? sorry for my English Thanks

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    Make a game.boolean called touched, then a rule if actor overlaps or collides with your other actor set it to true (depending on what you want you might want to open up the otherwise and set it to false). Then in your move rule do if touched = true followed by the up and down rules.

    Darren.

    image
Sign In or Register to comment.