The Dink Network

Reply to Re: End of Sprites

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
December 5th 2009, 02:29 PM
dinkdead.gif
All scripted sprites? That loop will kill every sprite, scenery, houses etc. If you want just enemies to go then you can kill every sprite with brain 9 (or 10).

int &kill;
loop:
& kill = get_next_sprite_with_this_brain(9, 0, &kill);
if (&kill)
{
  sp_active(&kill, 0);
  &kill += 1;
  goto loop;
}


Or instead of killing them you could just make them unable to hurt Dink, turn touch damage and attacking off maybe.