- Home /
Question by
Sajgonek · Nov 24, 2013 at 01:26 AM ·
platformer2d rotationtargeting2d character
[2DMode] Targeting enemy and change direction
I make 2D simple RPG with platformer mechanic. I try to make when distance between player and enemy is less than, for example 10, enemy set player as target and flip to him. Any sugestion?
Comment
Hi, which part do you need help with? Finding the distance between two objects? moving towards a target?
Finding the distance and flip sprite to player when distance is less than [value].
Your answer
Follow this Question
Related Questions
2D Top Down Character Control 2 Answers
2D 360 degress platformer example needed 0 Answers
2D Sidescroller enemy AI jump help! Picture Included! 3 Answers
Tilemap Collider/Composite Collider leaving gaps 2 Answers
Platformer cat not jumping and is flinging across the map when hitting a corner 2 Answers