Rotate hero actor to face closest enemy

Hi all,

i am reasonably new to Gamesalad. I am working on a game that I would like the actor to face the closest enemy. What is the best way to go about this?

Comments

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited January 2016

    To do this you'd need to track all the enemies positions on the scene. Which means each would need their own game level attributes storing their X and Y positions. If you have lots of enemies this can be an issue. It's always good to start with simpler concepts when learning gamesalad. Have you done any of the tutorials on the academy?

Sign In or Register to comment.