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:03 PM
dinkdead.gif
Probably this would work:

disable_all_sprites();
sp_disabled(1, 0);

and to undo use enable_all_sprites();

DinkC Ref: "When disabled is 1, the sprite is not visible, cannot move, and its brain does not function. Any script that is attached to the sprite will still run, though, and the sprite can still be interacted with (default procedures like hit and talk will work fine)."

To remove them completely you'd have to get rid of each one seperately I suppose by using sp_active or something.

Edit: Some kind of loop? This might work, off the top of my head:

int &sp_num = 2;
loop:
sp_active(&sp_num, 0);
&sp_num += 1;
if (&sp_num < 250)
  goto loop;