The Dink Network

Reply to Re: Multiple Sprites

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:
 
 
October 26th 2007, 10:05 PM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
Any sprite you make will not carry over screens, you have to do the thing I did with my summon file.

void main ()
{
script_attach(1000);
int &oldscreen = &player_map;
loop:
if (&oldscreen != &player_map)
{
//changed screens: remake the sprite
}
wait(1);
&oldmap = &player_map;
goto loop;
}

As for having sprites on the same integer.. No. The variable will take the number of the last created sprite. You can, however, use the variable to make one sprite, assign its properties and then create the next sprite using that variable. If you want to do something to that sprite, you can always give it a unique sp_gold() and use the get_sprite_with_this_brain(); in conjunction with checking its sp_gold amount.