Reply to Re: Need Some Help for my First DMOD
If you don't have an account, just leave the password field blank.
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(¤t_sprite, -1);
&save_y = sp_y(¤t_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(¤t_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
spawn("ending");
...be the simplest solution?
void die( void )
{
&save_x = sp_x(¤t_sprite, -1);
&save_y = sp_y(¤t_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(¤t_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