How to make an escaping enemy that spawns more enemies

mulambo

Member
Basically I want to make an enemy that runs away from the player and has a unique animation for dying (but the same animation for pain.. possibly no fall animation).
I know enemies are spawned through stage txt, but it is possible to make the enemy I discussed above to spawn more enemy.
It's a sort of "endurance boss", if you can figure it out.

How I do set up his txt the way I want it?
I already used another enemy as template but it falls (fall and rise anims were required or it just disappeared) and I know no way to make him:

- go away from player (he's already high speed)
- spawn/cast other enemies
- have a custom animation for dying
- not fall
 
This enemy is complex and you might need script for this :)

- go away from player (he's already high speed)

You can just give the enemy walk/leap/run away from player animation as his/her attack animation
This could be more complex if this enemy only do that when his/her health is low

- spawn/cast other enemies

Obviously script is needed
Looks like you'll need to learn how to use animationscript for this

- have a custom animation for dying

If enemy has DEATH animation and death command set, he/she will play that animation instead when he/she dies. Read manual for more info about death command

- not fall

If enemy has nodrop 2, he/she won't play FALL animation at all
 
how to add death command?
the frames are there, the dead sound is ok, but the dead animation isn't playing
Code:
anim death
	delay	11
	offset	55 115
frame	data/chars/diamond/d/01.gif
frame	data/chars/diamond/d/02.gif
frame	data/chars/diamond/d/03.gif
frame	data/chars/diamond/d/04.gif
frame	data/chars/diamond/d/05.gif
frame	data/chars/diamond/d/06.gif
frame	data/chars/diamond/d/07.gif
frame	data/chars/diamond/d/08.gif
frame	data/chars/diamond/d/09.gif
frame	data/chars/diamond/d/10.gif
frame	data/chars/diamond/d/11.gif
frame	data/chars/diamond/d/12.gif
frame	data/chars/diamond/d/13.gif
frame	data/chars/diamond/d/14.gif
frame	data/chars/diamond/d/15.gif
frame	data/chars/diamond/d/16.gif
frame	data/chars/diamond/d/17.gif
 
You should add falldie or death in the character header.

falldie {value} or death {value}

    ~Determines how DEATH animation will be played when the character dies.
        0 = fall, blink on ground then disappear without playing DEATH at all (default).
        1 = No FALL animation, DEATH animation will be played right after final blow
        2 = Fall first then play DEATH animation.
    ~MAKE SURE that the character have DEATH animation when using this!
 
Back
Top Bottom