- Home /
Flipping enemy 2d character to the side he is walking?
I got the player flipping, but the enemy cant have the same code and I cant figure out how to check where he should be facing. Does anyone have any suggestions?
Answer by MrSteve1 · Aug 13, 2014 at 11:58 AM
Store the X position of the enemy in a Var and the X position of the player in another, is the X of the player is < the enemy, face left, > the enemy face right..
Can't suggest much more without seeing some code!
Hope this helps!
Thank you! I've been working non stop past days on this so I just cant think properly!
Your answer
Follow this Question
Related Questions
How can I make my enemy always look/flip towards my player (2D top-down)? 1 Answer
AI fighting game 0 Answers
2d enemy prefab (enemy movement and instantiate) 1 Answer
2D AI, Aim at player - even when jumping? 1 Answer
2D Enemy AI X-way only 1 Answer