Reply to Re: How do you create sprites in scripts
If you don't have an account, just leave the password field blank.
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.
&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.