The Dink Network

Reply to Re: Screenlocking/Story

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:
 
 
July 28th 2010, 06:46 PM
spike.gif
Put the screenlock check thingy into void death. Using a loop in the monster script isn't a really good way, the loop gets interrupted when the monster is hit/killed. Plus it doesn't work anyway because there is no goto loop; anywhere.

void die( void )
{
  int &hold = sp_editor_num(&current_sprite);
  if (&hold != 0)
  editor_type(&hold, 1); 

if (get_sprite_with_this_brain(9,&current_sprite) == 0)
{
if (get_sprite_with_this_brain(10,&current_sprite) == 0)
{
// Remove the screenlock
screenlock(0);
playsound(43, 22050,0,0,0);
}
}

&save_x = sp_x(&current_sprite, -1);
&save_y = sp_y(&current_sprite, -1);

 external("emake","small");

}