Reply to Re: A weird question
If you don't have an account, just leave the password field blank.
Okay, I haven't scripted in dinkC for quite a while and haven't tested this, but here we go:
Oh and don't use the normal wrap at all, just the script.
void main(void) { //makes engine look for touch sp_touch(¤t_sprite, -1); } void touch(void) { //dink touched the wrapping thingy let's freeze him freeze(1); //change screennumber depending on a variable int &snumber; if(story < 5) { &snumber = 103; } else { &snumber = 102; } //following part is the wrap (modified from metas tutorial) //makes screen black fade_down(); //sets the map number from variable from before &player_map = &snumber; //loads and draws the new map load_screen(); draw_screen(); //dink will be unfrozen now so let's re-freeze him freeze(1); //set x and y coordinates for dink sp_x(1, 180); sp_y(1, 250); //make the player see the screen and unfreeze dink! fade_up(); unfreeze(1); }
Oh and don't use the normal wrap at all, just the script.