Enemy Moving Wrong Direction

So, I am working on this game and I need enemies to chase my hero.

I created two real Game Attributes: HeroX and HeroY.

I used Change Attribute on my Hero: HeroX to selfpositionX & HeroY to selfpositionY
Then I used Move on my Enemies: move in direction: HeroX & HeroY

My enemies should be moving toward my Hero, but instead, they're flying off the in the other direction.

Please Help!

Comments

  • newgrimmcitynewgrimmcity Member Posts: 8

    Bump

  • colandercolander Member Posts: 1,610

    Use Constrain not change. There are lots of tutorials on this do a search here and a Google search and you will find plenty.

Sign In or Register to comment.