The Dink Network

Reply to Re: sprites-editor\sprites-script

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 21st 2005, 08:40 AM
pig.gif
I think you can't change visions unless you do Fade_down(); or something. I dunno. Anyway, attach this to a script on the screen to check if the variable is equal to the desired number then make a sprite vanish.

Void main(void)
{
loop:
if(&<whatever your variables name is> == <desired number
{
sp_active(&<whatever the variable assigned to your sprite(s)>, 0);
//Change that 0 to a 1 to make a sprite reappear.
}
wait(100);
Goto loop;
}

Also, if you dont know how to assign a variable to a sprite, add this to the sprites (main) function of its script.

&current_sprite= &<variable for this sprite>

Hope that helped/is accurate (i havent really scripted anything in a few months).