The Dink Network

Reply to Re: create_sprite ? asking what the 3 number is

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:
 
 
April 4th 2018, 04:21 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
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.