The Dink Network

Reply to Re: Ineracting 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:
 
 
January 24th 2014, 05:42 PM
wizardg.gif
Sure. I'd do it by giving the gold a unique brain- say 49.
Then in the hit procedure of the different sprite run &variable = get_rand_sprite_with_this_brain(49, 0);
sp_pframe(&variable, newframe);

That should work.
If you use get_sprite_with_this_brain() without a variable I'm unsure whether or not it will return a value in &result.