Reply to Script causing crash
If you don't have an account, just leave the password field blank.
What's wrong with this script? The game crashes (goes black then back to desktop with game not responding) when it is run, and I can't see why.
freeze(¤t_sprite);
playsound(12, 22050, 0,0,0);
say("`9Something hit me!", ¤t_sprite);
wait(750);
say("`9Heeelp!", ¤t_sprite);
sp_speed(¤t_sprite, 10);
//int &xxx = sp_x(¤t_sprite, -1);
int &yyy = sp_y(¤t_sprite, -1);
if (&yyy < 240)
{
move_stop(¤t_sprite, 2, 240, 1);
}
move_stop(¤t_sprite, 4, 60, 1);
playsound(12, 22050, 0,0,0);
move_stop(¤t_sprite, 2, 333, 1);
move_stop(¤t_sprite, 6, 580, 1);
move_stop(¤t_sprite, 8, 240, 1);
playsound(12, 22050, 0,0,0);
move_stop(¤t_sprite, 4, 60, 1);
move_stop(¤t_sprite, 2, 333, 1);
move_stop(¤t_sprite, 6, 580, 1);
playsound(12, 22050, 0,0,0);
move_stop(¤t_sprite, 8, 240, 1);
sp_speed(¤t_sprite, 5);
say("`9Puff... puff...", ¤t_sprite);
move_stop(¤t_sprite, 4, 500, 1);
sp_speed(¤t_sprite, 1);
unfreeze(¤t_sprite);
freeze(¤t_sprite);
playsound(12, 22050, 0,0,0);
say("`9Something hit me!", ¤t_sprite);
wait(750);
say("`9Heeelp!", ¤t_sprite);
sp_speed(¤t_sprite, 10);
//int &xxx = sp_x(¤t_sprite, -1);
int &yyy = sp_y(¤t_sprite, -1);
if (&yyy < 240)
{
move_stop(¤t_sprite, 2, 240, 1);
}
move_stop(¤t_sprite, 4, 60, 1);
playsound(12, 22050, 0,0,0);
move_stop(¤t_sprite, 2, 333, 1);
move_stop(¤t_sprite, 6, 580, 1);
move_stop(¤t_sprite, 8, 240, 1);
playsound(12, 22050, 0,0,0);
move_stop(¤t_sprite, 4, 60, 1);
move_stop(¤t_sprite, 2, 333, 1);
move_stop(¤t_sprite, 6, 580, 1);
playsound(12, 22050, 0,0,0);
move_stop(¤t_sprite, 8, 240, 1);
sp_speed(¤t_sprite, 5);
say("`9Puff... puff...", ¤t_sprite);
move_stop(¤t_sprite, 4, 500, 1);
sp_speed(¤t_sprite, 1);
unfreeze(¤t_sprite);







