Creates another instance of the player as a helper character.
helpertype = type_string (string) This parameter is deprecated; player-type helpers are not supported. If helpertype = normal, then the helper will be allowed to move off the edge of the screen. Furthermore, the camera will not move to try to keep the helper on screen. If helpertype = player, then the helper will be constrained to the screen and will be followed by the camera, just like a normal player. Defaults to normal. If you plan to use a helper for camera manipulation, do not use a player-type helper; instead use the ScreenBound controller in a normal helper with the "movecamera" parameter.
name = "name_string" (string) Specifies a name for this helper, which must be enclosed in double quotes. If omitted, the name defaults to "<parent>'s helper", where <parent> represents the name of the player creating the helper.
ID = id_no (int) Sets an ID number to refer to this helper by. Defaults to 0.
pos = off_x, off_y (int) Specifies the x and y offsets to create this helper at. The precise meaning of these parameters is dependent on the postype. Defaults to 0,0.
postype = postype_string (string) postype_string specifies the postype -- how to interpret the pos parameters. In all cases, a positive y offset means a downward displacement. In all cases, off_y is relative to the position of the player. Defaults to P1
Valid values for postype_string are the following:
p1 Interprets offset relative to p1's axis. A positive off_x is toward the front of p1.
p2 Interprets offset relative to p2's axis. A positive off_x is toward the front of p2. If p2 does not exist, the position is calculated with respect to p1 and a warning is logged.
front Interprets off_x relative to the edge of the screen that p1 is facing toward. A positive off_x is away from the center of the screen, whereas a negative off_x is toward the center.
back Interprets off_x relative to the edge of the screen that p1 is facing away from. A positive off_x is toward the center of the screen, whereas a negative off_x is away from the center.
left Interprets off_x relative to the left edge of the screen. A positive off_x is toward the right of the screen.
right Interprets off_x relative to the right edge of the screen. A positive off_x is toward the right of the screen.
facing = facing (int) If postype is left or right, setting facing to 1 will make the helper face the right, and a value of -1 makes the helper face left. For all other values of postype except p2, if facing is 1, the helper will face the same direction as the player. If facing is -1, the helper will face the opposite direction. In the case of postype = p2, facing has the same effect as above, except it is with respect to p2's facing. Defaults to 1.
stateno = start_state (int) Determines the state number that the helper starts off in. Defaults to 0.
keyctrl = ctrl_flag (boolean) If ctrl_flag is 1, then the helper is able to read command input from the player (e.g., the keyboard or joystick). Also, the helper will inherit its root's State -1. If ctrl_flag is 0, then the helper does not have access to command input, and does not inherit State -1. The default value of ctrl_flag is 0.
ownpal = pal_flag (boolean) If pal_flag is 0, the helper will inherit its parent's palette. If the parent's palette is temporarily changed (eg. by a PalFX controller), the changes will be reflected in the helper too. If pal_flag is 1, the helper will receive its own working palette, that is independent of its parent's. Defaults to 0.
supermovetime = move_time (int) Specifies the number of ticks that the helper should be unfrozen during a SuperPause. Defaults to 0.
pausemovetime = move_time (int) Determines the number of ticks that the helper should be unfrozen during a Pause. Defaults to 0.
size.xscale (float) See below.
size.yscale (float) See below.
size.ground.back (int) See below.
size.ground.front (int) See below.
size.air.back (int) See below.
size.air.front (int) See below.
size.height (int) See below.
size.proj.doscale (int) See below.
size.head.pos (int,int) See below.
size.mid.pos (int,int) See below.
size.shadowoffset (int) These parameters have the same meaning as the corresponding parameters in the root's CNS file. You can specify one or more of these parameters to change it to a value suitable for this helper. Otherwise, they default to the values inherited from the parent.
Any helper spawned before the round start during the intro(s) will be destroyed if the intro is skipped.
[State 0, Helper]
type = Helper
trigger1 = time = 0
helpertype = normal ;player
name = "Odb718's helper"
ID = 718
stateno = 187
pos = 41,-87
postype = p1 ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 0
supermovetime = 0
pausemovetime = 0
;size.head.pos = ,
;size.mid.pos = ,
remappal = dst_pal_grp, dst_pal_item (int, int)
Forces a palette remap of the helper's indexed-color sprites to the specified palette. This parameter is used only if ownpal_flag is non-zero. If dst_pal_grp is -1, this parameter will be ignored. Defaults to -1, 0.