Reply to 2 errors in one script, oh my.
If you don't have an account, just leave the password field blank.
So, I made this script..
void touch(void)
{
sp_touch_damage(¤t_sprite,0);
playsound(51,44000,0,1,0);
say_xy("Engage!",311,201);
wait(3000);
//Waits for the .wav to finish
fade_down();
&player_map = 007;
sp_x(1, 255);
sp_y(1, 205);
sp_dir(1,6);
load_screen();
draw_screen();
fade_up();
playmidi("23.mid");
kill_this_task();
}
I got the message "Script seems syntactically correct" from my editor, but found the following problems.
1.Screen doesn't fade up, but Dink can walk around, and get hurt and whatnot. If I remove "Draw_screen", it'll fade up, but there's still an obvious error in that case.
2.The last part of the WAV gets cut off, even though I believe I loaded it correctly in Start.c
load_sound("ENGAGE.WAV", 51);
Any ideas as to the problems?
void touch(void)
{
sp_touch_damage(¤t_sprite,0);
playsound(51,44000,0,1,0);
say_xy("Engage!",311,201);
wait(3000);
//Waits for the .wav to finish
fade_down();
&player_map = 007;
sp_x(1, 255);
sp_y(1, 205);
sp_dir(1,6);
load_screen();
draw_screen();
fade_up();
playmidi("23.mid");
kill_this_task();
}
I got the message "Script seems syntactically correct" from my editor, but found the following problems.
1.Screen doesn't fade up, but Dink can walk around, and get hurt and whatnot. If I remove "Draw_screen", it'll fade up, but there's still an obvious error in that case.
2.The last part of the WAV gets cut off, even though I believe I loaded it correctly in Start.c
load_sound("ENGAGE.WAV", 51);
Any ideas as to the problems?






