The Dink Network

Reply to Command crashes Dink

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 24th 2004, 09:52 AM
spike.gif
void main( void )
{
sp_seq(&current_sprite, 449);
sp_sound(&current_sprite, 34);
sp_brain(&current_sprite, 6);
sp_hitpoints(&current_sprite, 0);
}
void hit( void )
{
&save_x = sp_x(&current_sprite, -1);
&save_y = sp_y(&current_sprite, -1);
if (sp_brain(&current_sprite, -1) == 6)
{
playsound(50, 22050, 0, 0, 0);
sound_set_kill(34);
sp_brain(&current_sprite, 0);
return;
}
//rest of the script

The sound_set_kill(); command crashes the game. Why is that? I've never tried that command before, am I doing it wrong??

BTW, is there a way to make the savebot instantly stop on the frame it's on when Dink hits it? I can't think of anything better than disabling the sprite and pasting the pic on it...