The Dink Network

Kill enemies

July 3rd 2009, 05:33 AM
dragon.gif
Quiztis
Peasant He/Him Sweden bloop
Life? What's that? Can I download it?! 
When Sparrowhawks timer is down to zero, all enemies (brain 9) on screen will be killed. How do I execute this?
July 3rd 2009, 05:55 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
Just make a little loop that kills all the brain 9 sprites:

int &enemy;
loop:
&enemy = get_sprite_with_this_brain(9,1);
if (&enemy != 0)
{
sp_active(&enemy,0);
wait(1);
goto loop;
}
July 3rd 2009, 06:11 AM
dragon.gif
Quiztis
Peasant He/Him Sweden bloop
Life? What's that? Can I download it?! 
Nice, works like a charm.