How do i make a custom character a enemy?

I want add a fight where you can fight a collectable character but i don't know how to make him a enemy. Can someone help?
If you use the regular, static enemies, put the picture of them into your enemy folder(Enemies if front view, sv_enemies if sideview). If you use animated sideview characters (Like yanfly's animated sv enemies), put their battler sprite into the sv_actors folder.

Then create an anemy entry for them in your database like any other enemy.

This addon allows you to set actor sprites for enemies. Obviously you will have to create a new enemy so that it is the same as the actor you created. The yanfly plugin is just for displaying the actor sprite.

This addon allows you to set actor sprites for enemies. Obviously you will have to create a new enemy so that it is the same as the actor you created. The yanfly plugin is just for displaying the actor sprite.
Thank you so much! it works now!

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-a-custom-character-a-enemy.170905/