The Dink Network

Reply to Re: 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, 10:12 AM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
sound_set_kill() uses a sound's number as input. This number is the value of &sound in:

&sound = playsound(whatever);

Just like you use &sprite = create_sprite(whatever);

My guess is that it crashes because there aren't 34 sounds playing.

A way to stop the animation of the savebot would be:

void hit( void )
{
&crap = sp_pframe(&current_sprite, -1);
sp_brain(&current_sprite, 0);
sp_pframe(&current_sprite, &crap);
}

This basically stops the animation and gives the sprite the last frame. You have to place an "int &crap" in the main proc.