Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

!can someone PLEASE help! (enemy facing)

jadjad Posts: 135Member
edited 1:18PM 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?


  • giacomopoppigiacomopoppi Posts: 914Member, PRO
    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! ;)


    P.S. next time, try to use a more descriptive title!
  • jadjad Posts: 135Member
    got it fixed THX
  • giacomopoppigiacomopoppi Posts: 914Member, PRO
    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: [email protected]

This discussion has been closed.