Enemy Moving Wrong Direction
newgrimmcity
Member Posts: 8
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
Bump
Use Constrain not change. There are lots of tutorials on this do a search here and a Google search and you will find plenty.
Universal Binary Template - Universal Binary Template Instructions Rev 4 (Short) - Custom Score Display Template