The Dink Network

Reply to Re: How do you create sprites in scripts

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:
 
 
November 27th 2005, 06:56 AM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
int &newsprite = create_sprite(&x, &y, &brain, &seq, &frame);

&x and &y are the coordinates you want the sprite to appear.
&brain is the brain it should have
&seq and &frame is the picture you want the sprite to have

Brain 6 is the "repeat sequence" brain. You might also need to set

sp_seq(&newsprite, &seq);

after the create_sprite.

From now on you can reference to the created sprite with &newsprite, until you overrule it with something else.

say_stop("Hey, I've just been created", &newsprite);

works, for example.