Reply to Re: sprites-editor\sprites-script
If you don't have an account, just leave the password field blank.
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.
¤t_sprite= &<variable for this sprite>
Hope that helped/is accurate (i havent really scripted anything in a few months).
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.
¤t_sprite= &<variable for this sprite>
Hope that helped/is accurate (i havent really scripted anything in a few months).