Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hello, Robert here:
Here's the way I do to create new enemies:

1.- Unpack an already existing enemy prefab.
2.- Duplicate the folder that has all the animations (Walk, Damage, Attack & Death).
3.- In the new folder, rename the animator and animations.
4.- In the animator, delete all the animations, because you will assign the new ones.

5.-Now, modify the animations that you want to add.

6.- After that, add all the animations in the animator. Don't worry, the code will know how to call each one, you don't need to conect them in the animator.

7.- Now the final step, in the enemy gameobject there's a script called "Animation Player", there you need to add the animations to each list (Walk, Damage, Attack & Death) but in the next order:

-Front

-Front Right

-Right

-Back Right

-Back

-Back Left

-Left

-Front Left

After that, the enemy can be used to shoot hitscans (pistol type or shotgun) or proyectiles like fireballs, just adjusting the Gun End to the type of attack you wish to use. 

It's the most straight forward way, so you don't have to start from 0, and that's how I have been creating more enemies to the upcoming game we are developing with the template.
Hope these steps helps you to create more enemies for your game, if you have more problems, don't mind in writting us!

Sweet! I'll try it out, thank you!