Reply to Re: File wanted:day to night
If you don't have an account, just leave the password field blank.
And this is the script attached to map.
void main(void)
{
if (&don == 1)
{
&don = 2;
fade_down();
// screen to warp to, 1 to 768:
&player_map = &player_map + 9;
// Dink's X,Y coordinates on the new screen:
// face Dink in an appropriate direction, usually toward the player:
// load screen specified by &player_map:
load_screen();
// draw the screen's tiles and sprites:
draw_screen();
// if sp_noclip() is in use in this dmod, redraw the status area:
draw_status();
// undo fade_down(), or do a sp_nodraw(1,0) to undo a sp_nodraw(1,1):
fade_up();
// kill script manually, since we did a script_attach(1000) earlier:
kill_this_task();
}
}
void main(void)
{
if (&don == 1)
{
&don = 2;
fade_down();
// screen to warp to, 1 to 768:
&player_map = &player_map + 9;
// Dink's X,Y coordinates on the new screen:
// face Dink in an appropriate direction, usually toward the player:
// load screen specified by &player_map:
load_screen();
// draw the screen's tiles and sprites:
draw_screen();
// if sp_noclip() is in use in this dmod, redraw the status area:
draw_status();
// undo fade_down(), or do a sp_nodraw(1,0) to undo a sp_nodraw(1,1):
fade_up();
// kill script manually, since we did a script_attach(1000) earlier:
kill_this_task();
}
}