Reply to Command crashes Dink
If you don't have an account, just leave the password field blank.
void main( void )
{
sp_seq(¤t_sprite, 449);
sp_sound(¤t_sprite, 34);
sp_brain(¤t_sprite, 6);
sp_hitpoints(¤t_sprite, 0);
}
void hit( void )
{
&save_x = sp_x(¤t_sprite, -1);
&save_y = sp_y(¤t_sprite, -1);
if (sp_brain(¤t_sprite, -1) == 6)
{
playsound(50, 22050, 0, 0, 0);
sound_set_kill(34);
sp_brain(¤t_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...
{
sp_seq(¤t_sprite, 449);
sp_sound(¤t_sprite, 34);
sp_brain(¤t_sprite, 6);
sp_hitpoints(¤t_sprite, 0);
}
void hit( void )
{
&save_x = sp_x(¤t_sprite, -1);
&save_y = sp_y(¤t_sprite, -1);
if (sp_brain(¤t_sprite, -1) == 6)
{
playsound(50, 22050, 0, 0, 0);
sound_set_kill(34);
sp_brain(¤t_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...