Reply to Re: create_sprite ? asking what the 3 number is
If you don't have an account, just leave the password field blank.
1) Yeah, pretty much.
create_sprite(x,y,brain,seq number,frame)
2) It's the brain, it determines behavior of the sprite. It's like setting the sp_brain() of the sprite.
0: default, no special behavior
1: humancontrolled
2: no practical use
3: duck (plays duck sound)
4: pig (plays pig sound)
5: Dying animation (go through animation, leave last frame drawn)
6: Repeat (go through animation repeatedly)
7: Sequence (go through animation once)
8: Text (???)
9: diagonal enemy
10: horizontal/vertical enemy
11: Missile (used for missiles)
12: Scale (shrinks/grows sprite, then kills it)
13: Mouse (mouse-controlled)
14: Button (has button-on/button-off 'events')
15: Shadow (A shadow for another sprite)
16: NPC
17: Missile (used for missiles, goes through animation only once (I think))
Most of the time you use 0. Otherwise it's usually 9 or 16, others are more rare. Note that often some other properties (such as speed, basewalk, brain_parm etc) need to be set to get the proper behavior from the sprite.
I think you can also put in some arbitrary number and it will behave as 0.
create_sprite(x,y,brain,seq number,frame)
2) It's the brain, it determines behavior of the sprite. It's like setting the sp_brain() of the sprite.
0: default, no special behavior
1: humancontrolled
2: no practical use
3: duck (plays duck sound)
4: pig (plays pig sound)
5: Dying animation (go through animation, leave last frame drawn)
6: Repeat (go through animation repeatedly)
7: Sequence (go through animation once)
8: Text (???)
9: diagonal enemy
10: horizontal/vertical enemy
11: Missile (used for missiles)
12: Scale (shrinks/grows sprite, then kills it)
13: Mouse (mouse-controlled)
14: Button (has button-on/button-off 'events')
15: Shadow (A shadow for another sprite)
16: NPC
17: Missile (used for missiles, goes through animation only once (I think))
Most of the time you use 0. Otherwise it's usually 9 or 16, others are more rare. Note that often some other properties (such as speed, basewalk, brain_parm etc) need to be set to get the proper behavior from the sprite.
I think you can also put in some arbitrary number and it will behave as 0.