The Dink Network

Reply to Re: Little help please

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
January 15th 2011, 03:41 PM
custom_iplaydink.gif
iplaydink
Peasant He/Him Sweden
Hmm.. 
void main(void)
{
    //first we make sprite touchable
    sp_touch_damage(&current_sprite, -1);
}
void touch(void)
{
     if(&story == 1)
     {
          freeze(1);
          //fade down the screen after freezeing dink
          fade_down(); 
          script_attach(1000); 
          //&player map is the screen number
          &player_map = 120; 
          //loads map
          load_screen(); 
          //draws map
          draw_screen(); 
         //we have to freeze dink again after wrap
         freeze(1);
         //where should dink appear?
         sp_x(1, 180); 
         sp_y(1, 250); 
        //let's fade up screen
        fade_up();
        unfreeze(1);
    }
    else
    {
         //on the other condition do the same thing but     
        //change loacation and screen number
    }
}


I haven't tested the script so there may be typos

EDIT: Oh and you have to remove the wrap from editor...and the sprite must be hard