The Dink Network

Reply to Re: Some problem

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:
 
 
December 4th 2005, 03:40 PM
knightg.gif
cypry
Peasant He/Him Romania
Chop your own wood, and it will warm you twice. 
int &rock1 = sp(1);
sprite 1 is always dink;
Usually, the sprite number you see in the editor is not the real one, because dink is not there. Probably, if you see 1 in the editor, your sprite will be 2.
I don't know if it's the best ideea, but you could attach a script to every rock, with this:
void main(void)
{
sp_brain(&current_sprite, 91);
}

the secon rock would have:

void main(void)
{
sp_brain(&current_sprite, 92);
}

Then, in your main script
&rock1 = get_sprite_with_this_brain(91, &current_sprite);
&rock2 = get_sprite_with_this_brain(92, &current_sprite);