Reply to Re: I need help in storing a sprite
If you don't have an account, just leave the password field blank.
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(¤t_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...
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(¤t_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...






