The Dink Network

Cutscene

July 12th 2009, 08:38 AM
dragon.gif
Quiztis
Peasant He/Him Sweden bloop
Life? What's that? Can I download it?! 
I want a flashback to happen when Dink talks to a NPC. Kinda like this:

void talk(void)
{
say_stop("Hello , 1);
wait(200);
say_stop("`2Hello to you. Wanna hear my story?" , &current_sprite);
wait(200);
say_Stop("No." , 1);
wait(200);
say_stop("`2Well, I'll tell you anyway." , &current_sprite);
fade_down();
freeze(1);
sp_nodraw(1, 1);
*cutscene here*


I want the cutscene to appear on another screen to simulate a flashback. So it fades down and then fades up on another screen. What command do I use to accomplish that? I've tried draw_screen after the screen fades in the code but it just messes up.
July 12th 2009, 08:44 AM
custom_marpro.png
Marpro
Peasant He/Him bloop
 
    fade_down();
    script_attach(1000); 
    &player_map = xxx;
    load_screen(xxx);
    draw_screen();
    wait(xxx);
    fade_up();

That might work.
July 12th 2009, 08:46 AM
slayer.gif
MadStalker
Peasant He/Him Finland
tag line 
Use script_attach(1000); to make the script "live" past the screenchange (remember to kill_this_task when done!) and change the screen by &player_map.

E: I hate it when this happens!
July 12th 2009, 11:41 AM
girl.gif
joshriot
Peasant They/Them United States
keep it real 
look at how other people do it in their source code and learn. works 100% of the time.
July 12th 2009, 12:08 PM
dragon.gif
Quiztis
Peasant He/Him Sweden bloop
Life? What's that? Can I download it?! 
Thanks everyone. Guess I was too lazy to do it this time, Josh.