The Dink Network

Reply to Re: Wait times

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:
 
 
November 1st 2024, 06:07 AM
death.gif
Seseler
Peasant He/Him Heard Island And Mcdonald Islands
 
The brain 12 sprite will delete itself after it reaches the target size, and sp_seq will return -1 for deleted sprites, so you should check if the seq > 0.
Also make sure that the script is not attached to the explosion itself, or it will be killed with the explosion.

Try this:
int &seq;

sp_timing(&current_sprite, 1);

loop:
&seq = sp_seq(&explosion, -1);
if(&seq > 0)
{
	move_stop(&current_sprite, 2, -2147483648, 1);
	goto loop;
}
//Sprite done animating


edit: had the check wrong: <= instead of >