#How to make enemy face player.
1 messages · Page 1 of 1 (latest)
I was going to use the get_node thing.
But to be honest I just wanted to start with the enemy constantly looking at the player.
Then follow the player.
Then detect the player when in view.
i assume this is a top down game
Yeah hotline miami style.
you can use look_at(player_node)
just a sec
oh mb. it is look_at(player_node.global_position)
and to get teh player you can use a unique name or a group
I'll have a go at it tomorrow.
Thankyou.
gl
If it doesn't work I'll come back here.
Oh and one more thing.
For the enemy should I use a character2d node or kinematic2d node?
in which case, look_at is your best friend,
also good thing nightfall already helped you out (i was helping someone else)
character2d
Yeah night fall is really cool.
Thankyou.
Is it something like this?
This was the answer.