Scripted warps?
how?
Ive been looking for the last hour for a tutorial, or a script with a warp in it, but i couldent find one. i forgot how to do them recently, and i was hoping someone would just say how to do them, i tryed a few times, but they just lead to the most bizzare of crashes.
Thanks
.
Ive been looking for the last hour for a tutorial, or a script with a warp in it, but i couldent find one. i forgot how to do them recently, and i was hoping someone would just say how to do them, i tryed a few times, but they just lead to the most bizzare of crashes.
Thanks

This is a piece of code which warps dink to another map and has a fade effect.
freeze(1);
//Only when attached to a sprite
script_attach(1000);
//Fill in new map
&player_map = ###;
fade_down();
load_screen();
//Optional, set Dinks x,y and direction
sp_x(1,###);
sp_y(1,###);
sp_dir(1,#);
draw_screen();
fade_up();
unfreeze(1);
kill_this_task();
freeze(1);
//Only when attached to a sprite
script_attach(1000);
//Fill in new map
&player_map = ###;
fade_down();
load_screen();
//Optional, set Dinks x,y and direction
sp_x(1,###);
sp_y(1,###);
sp_dir(1,#);
draw_screen();
fade_up();
unfreeze(1);
kill_this_task();
Check the script for the cave Dink crawls into in original Dink, the script was s1-hole.c or s1-cave.c
Warps in a cutscene: A screenchange will unfreeze Dink which allows the player to talk/walk and interfere with the scripted events. You'll need to do a freeze(1) again if you want to warp in a cutscene which continues after the screenchange.