The Dink Network

Reply to Re: I need help in storing a sprite

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:
 
 
May 6th 2009, 04:29 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
You can't directly store a sprite if it isn't placed in the editor. I can offer you two workarounds:

1) Attach a script to the screen the knight is on, and re-create the sprite when you re-enter the screen. Something like this:

void main()
{
if (cutscene has happened)
{
int &knight = create_sprite();
sp_script();
}
}

2) Place the knight in the editor and make it only active if the cutscene has happened. Something like this:
void main()
{
if (cutscene has not happened)
{
sp_active(&current_sprite,0);
}
}

And you're sure it worked? I thought that if you used an sp_script() command the name of the scriptfile shouldn't be longer than 9 characters. That's what the DinkC reference tells me anyway...