First, I’m so sorry to ask this again, I know this may have been asked a lot of time but I just can’t find the correct answer, and the posts I found seemed too old. With all those new assets and libraries, I’m a bit lost.
What is now the best way to make 2D sprited enemy for a retro-like FPS game ? You know… Like Duke Nukem 3D (is that 2.5D game ?). With a main direction, and sides, back, etc…
I heard about Toolkit2D, or maybe just the embed Unity features.
You can make a png “spritesheet” of your enemy, then import it as an image asset, change the Texture Type to “2D Sprite” and then use the Sprite Editor to cut your spritesheets.
So, you can use the Sprite Editor to animate your enemy and give him states, then add a script to your GameObject to make it always face the camera :
private var player: GameObject;
player = GameObject.Find("Player");
function Update () {
transform.LookAt(player.transform);
}
But the GameObject will always face you, so the vision angle will always be 0. So in your script, you can handle his direction (front/back) with another variable. It’s pretty tricky but you can try, as no-one else seems to have a solution