dantedevil
Well-known member
I'm trying to create a modified version to spawn a Boss after certain time.
First spawn a entity with idle animation of the boss, then spawn the boss and kill the spawner.
That the idea, but not work.
First spawn a entity with idle animation of the boss, then spawn the boss and kill the spawner.
That the idea, but not work.
Code:
ame balrog_0
health 100
type enemy
shadow 0
nomove 1
animationscript data/scripts/escript.c
anim idle
@script
void self = getlocalvar("self");
int Health = getentityproperty(self, "health");
if(frame==1){
changeentityproperty(self, "health", Health-5);
if (Health <= 0){
changeentityproperty(vSelf, "animation", openborconstant("ANI_FOLLOW1"));
}
}
@end_script
loop 1
delay 49
offset 82 177
frame data/chars/balrog/spawn1.png
delay 1
frame data/chars/balrog/spawn1.png
anim follow1
loop 0
delay 1
offset 82 177
@cmd spawn01 "balrog" 0 0 1
frame data/chars/balrog/spawn1.png
@cmd killentity getlocalvar("self")
frame data/chars/balrog/spawn1.png