User:Polavux/Technical:Bloons Super Monkey 2 (Flash)
Level structure
Behaviours
| Character | Function |
|---|---|
i
|
Executes the behaviour during initialisation. |
u
|
Executes the behaviour on each update (normally happens on each frame, or 60 times per second). |
x
|
Executes the behaviour immediately. Normally used only for starting and ending child groups. |
AddBloon
Spawns a single Bloon at the specified coordinates.
| Index | Description | Type | Required? |
|---|---|---|---|
| 0 | The X coordinate. | Number | |
| 1 | The Y coordinate. | Number | |
| 2 | The type of Bloon according to its internal ID. | Number | |
| 3 | If false, this Bloon and all Bloons created from child behaviours do not spawn Blops when popped. Defaults to true. | Boolean |
AddBloonPolar
Unused. Spawns a single Bloon using polar coordinates.
| Index | Description | Type | Required? |
|---|---|---|---|
| 0 | The angle, as represented by a number between 0 and 1, where 0=0°, 1=360°, and 0.5=180°. The value is multiplied by 2π to get the angle in radians. | Number | |
| 1 | The distance. | Number | |
| 2 | The type of Bloon according to its internal ID. | Number |
AddEmptyBloon
Unused. Takes no parameters.
CreateCircle
Creates a group of Bloons in a filled ellipse.
| Index | Description | Type | Required? |
|---|---|---|---|
| 0 | The spacing between each ring of Bloons within the shape. | Number | |
| 1 | The radius. If set to 0, no Bloons generate. | Number | |
| 2 | The type of Bloon according to its internal ID. Defaults to 0 (Red). | Number | |
| 3 | Scales the ellipse on the X axis. Defaults to 1. | Number | |
| 4 | Scales the ellipse on the Y axis. Defaults to 1. | Number |
FollowBezier
Causes the group and all child groups to follow a cubic Bézier curve.
| Index | Description | Type | Required? |
|---|---|---|---|
| 0 | The X position of point A. | Number | |
| 1 | The Y position of point A. | Number | |
| 2 | The X position of point B. | Number | |
| 3 | The Y position of point B. | Number | |
| 4 | The X position of point C. | Number | |
| 5 | The Y position of point C. | Number | |
| 6 | The X position of point D. | Number | |
| 7 | The Y position of point D. | Number | |
| 8 | If the quality is specified, this determines the speed. Otherwise, it determines the duration. | Number | |
| 9 | Determines the "quality" of the curve. Defaults to 10000000.
|
Number |
RemoveAtAge
Causes the group and all child groups to expire if the parent's age is greater than the specified lifespan.
| Index | Description | Type | Required? |
|---|---|---|---|
| 0 | The lifespan, in frames. | Number |
RemoveAtBottom
Causes the group and all child groups to expire if the parent's Y-position minus its radius is greater than the height of the screen (600 pixels). This behaviour takes no parameters.