: : : : : When using this script, it fades down allright, but the screen wanted doesn't come up: it stays black :( . Where did I go wrong?
: : : : : fade_down();
: : : : : fill_sreen(0);
: : : : : &player_map = 130;
: : : : : sp_x(1, 391);
: : : : : sp_y(1, 68);
: : : : : load_screen();
: : : : : draw_screen();
: : : : : draw_status();
: : : : : fade_up();
: : : : : unfreeze(1);
: : : : : kill_this_task();
: : : : : Thanks! :)
: : : : you need a " script_attach(1000); " before you change screens, otherwise, the script is killed when you load the new screen, and thus fade_up, etc... are never read.
: : : : Also, you may want to put &update_status = 1; after draw_status(); not always necessary, but good practice.
: : : and use load_screen(130), instead of load_screen();
: : That's ABSOLUTELY not necessary, as the numbers between the parantheses are ignored. ;)
: Ehm... lost you there. What line is not necessary?
Like I said, having numbers between the parentheses on the "load_screen();" (Which else had parentheses?) command is totally useless, cause they are ignored. The only thing that matters is the &player_map = 130; line.
: : : : : : When using this script, it fades down allright, but the screen wanted doesn't come up: it stays black :( . Where did I go wrong?
: : : : : : fade_down();
: : : : : : fill_sreen(0);
: : : : : : &player_map = 130;
: : : : : : sp_x(1, 391);
: : : : : : sp_y(1, 68);
: : : : : : load_screen();
: : : : : : draw_screen();
: : : : : : draw_status();
: : : : : : fade_up();
: : : : : : unfreeze(1);
: : : : : : kill_this_task();
: : : : : : Thanks! :)
: : : : : you need a " script_attach(1000); " before you change screens, otherwise, the script is killed when you load the new screen, and thus fade_up, etc... are never read.
: : : : : Also, you may want to put &update_status = 1; after draw_status(); not always necessary, but good practice.
: : : : and use load_screen(130), instead of load_screen();
: : : That's ABSOLUTELY not necessary, as the numbers between the parantheses are ignored. ;)
: : Ehm... lost you there. What line is not necessary?
: Like I said, having numbers between the parentheses on the "load_screen();" (Which else had parentheses?) command is totally useless, cause they are ignored. The only thing that matters is the &player_map = 130; line.
Ofcourse. That was stupid of me. My brain must have been in some overloadsession or something.
Thanks for explaining again! :) :)