The Dink Network

Reply to Re: Need Some Help for my First DMOD

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 11th 2004, 02:52 AM
custom_fish.png
SabreTrout
Noble He/Him United Kingdom
Tigertigertiger. 
Am I getting the wrong end of the stick, or wouldn't...

spawn("ending");

...be the simplest solution?

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

// Now, before the sprite kills itself off...
spawn("ending");
//Then you just have Dink running about celebrating or whatever in that scrpt, with the credits rolling.
int &hold = sp_editor_num(&current_sprite);
if (&hold != 0)
{
//added this bracket, so that script would not terminate when it got to the next closing bracket
editor_type(&hold, 2);
editor_seq(&hold, 645);
editor_frame(&hold, 1);
}
etc