!can someone PLEASE help! (enemy facing)

jadjad Member Posts: 135
edited November -1 in Working with GS (Mac)
I have a player on-screen and i have an enemy spawner off screen, the spawner spawns enemies that move towards my player. But I want the enemies to FACE my player, and no matter what I do it doesn't work right e.g. they spin to certain position, they turn the way i turn. There doesn't seem to be a template that addresses this, so could someone please help?

Comments

  • giacomopoppigiacomopoppi Member, PRO Posts: 914
    Facing the player? have you tried "rotate to position"?

    create 2 game attributes:
    X and Y

    go to your on-screen player:
    constrain attribute X to self.positionX
    constrain attribute Y to self.positionY

    In the enemy, use rotate to position select attributes X and Y and uncheck the "stops on destination" option.

    That should work! ;)

    Giacomo

    P.S. next time, try to use a more descriptive title!
  • jadjad Member Posts: 135
    got it fixed THX
  • giacomopoppigiacomopoppi Member, PRO Posts: 914
    Are you sure you havn't set it any other rotation behaviours you have forgotten about?

    If you want me to have a look at it just send it over: giacomopoppi@gmail.com

    Giacomo
Sign In or Register to comment.