Reply to Re: Command crashes Dink
If you don't have an account, just leave the password field blank.
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(¤t_sprite, -1);
sp_brain(¤t_sprite, 0);
sp_pframe(¤t_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.
&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(¤t_sprite, -1);
sp_brain(¤t_sprite, 0);
sp_pframe(¤t_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.