Creates another instance of the player as a helper character.
Required parameters:
Optional parameters:
- helpertype = type_string (string)
Deprecated -- do not use player-type helpers
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 helpers (it is deprecated). Use the ScreenBound controller with the "movecamera" parameter if necessary.
- 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 = x_off, y_off (int)
Determines 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 works nearly the same as in the Explod controller. postype_string specifies the postype -- how to interpret the pos parameters. In all cases, a positive y offset means a downward displacement. Valid values for postype are the following:
- p1 - Interprets pos relative to p1's axis. A positive x offset is toward the front of p1. This is the default value for postype.
- p2 - Interprets pos relative to p2's axis. A positive x offset is toward the front of p2. If p2 does not exist, the helper is created with respect to p1.
- front - Interprets xpos relative to the edge of the screen that p1 is facing toward, and ypos relative to p1's axis. A positive x offset is away from the center of the screen, whereas a negative x offset is toward the center.
- back - Interprets xpos relative to the edge of the screen that p1 is facing away from, and ypos relative to p1's axis. A positive x offset is toward the center of the screen, whereas a negative x offset is away from the center.
- left - Interprets xpos relative to the left edge of the screen, and ypos relative to p1's axis. A positive x offset is toward the right of the screen.
- right - Interprets xpos relative to the right edge of the screen, and ypos relative to p1's axis. A positive x offset is toward the left 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 keyctrl = 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 keyctrl = 0, then the helper does not have access to command input, and does not inherit State -1. The default value of keyctrl is 0.
- ownpal = pal_flag (boolean)
If ownpal = 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 ownpal = 1, the helper will receive its own working palette, that is independent of its parent's. Defaults to 0.
- supermovetime = value (int)
Determines the number of ticks that the helper should be "unfrozen" during a SuperPause. Often useful if you want the helper to make its appearance during a SuperPause. Defaults to 0.
- pausemovetime = value (int)
Determines the number of ticks that the helper should be "unfrozen" during a Pause. Defaults to 0.
- size.xscale (float): Horizontal scaling factor.
- size.yscale (float): Vertical scaling factor.
- size.ground.back (int): Player width (back, ground)
- size.ground.front (int): Player width (front, ground)
- size.air.back (int): Player width (back, air)
- size.air.front (int): Player width (front, air)
- size.height (int): Height of player (for opponent to jump over)
- size.proj.doscale (int): Set to 1 to scale projectiles too
- size.head.pos (int, int): Approximate position of head
- size.mid.pos (int, int): Approximate position of midsection
- size.shadowoffset (int): Number of pixels to vertically offset the shadow
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.
Example:
none