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

Sign In or Register to comment.