The Dink Network

Scripted warps?

April 17th 2005, 04:10 PM
pig.gif
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 .
April 17th 2005, 04:37 PM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
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();
April 18th 2005, 05:56 AM
spike.gif
Check the script for the cave Dink crawls into in original Dink, the script was s1-hole.c or s1-cave.c
April 18th 2005, 08:33 AM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
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.
April 18th 2005, 11:11 AM
pig.gif
Thanks guys.