// path/enemy.txt
script_enemy{
@Initialize{}
@MainLoop{}
@DrawLoop{}
@Finalize{}
}
// stage.txt
#headers if needed
script_stage_main{
@Initialize{}
@MainLoop{
//at some point
CreateEnemyFromFile("path/enemy.txt", x, y, s, a, 0);
}
@BackGround{}
@Finalize{}
}That's basically all enemies are. If you're getting errors and it isn't immediately obvious, then something is going wrong elsewhere. If you want help, please pastebin some sample code.