User:Polavux/Technical:Bloons Super Monkey 2 (Flash)
Level structure
edit| Character | Function |
|---|---|
i
|
Executes the behaviour when the group is initialised. |
u
|
Executes the behaviour each time the group updates (normally happens on each frame, or 60 times per second). |
x
|
Executes the behaviour immediately. Normally used only for starting and ending child groups. |
Behaviours
editAddBloon
editSpawns 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
editUnused. Spawns a single Bloon at the specified 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
editUnused. Takes no parameters.
AddShields
editAdds a shield to each Bloon in the group. Does not affect child groups.
| Index | Description | Type | Required? |
|---|---|---|---|
| 0 | The health of the shield. | Number |
CreateCircle
editCreates a group of Bloons in a solid 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 |
CreateFromBitmap
editGenerates a Bloon group from a BitmapData image asset. Starting with the top left pixel, it scans every third pixel from left to right, repeating for every third row of pixels, and for each pixel scanned, it creates a Bloon in the grid whose type depends on the pixel's colour. This behaviour is only used in the unused Altitude stages.
| Index | Description | Type | Required? |
|---|---|---|---|
| 0 | The name of the asset. | String |
This function maps the following colours to each Bloon type. If a colour does not map to a Bloon, it is treated as an empty space.
| Hex | Type |
|---|---|
| #7B7B7B | Lead |
| #FFFFFF | White |
| #ED1C24 | Red |
| #000000 | Black |
| #620505 | Ceramic |
| #B5E61D | Green |
| #FFF200 | Yellow |
| #00A2E8 | Blue |
CreateRain
editUnused. Takes no parameters.
FollowBezier
editCauses 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 |
RecordPath
editRemoveAtAge
editCauses 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
editCauses 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.
RemoveIfGreaterThanX
editRemoveIfLessThanX
editRepel
editReverseDrawOrder
editRock
editRotate
editRotateAroundPoint
editRotateSelectedTool
editRotateWithVelocity
editSaveFormation
editSaveLevelsToSource
editScale
editScaleAroundPoint
editScaleOnX
editScaleOnY
editScaleSelectedTool
editSelectAndGroup
editSelectAndModify
editSelectBackgroundAsset
editSetPhase
editSetPosition
editSetTypeByBand
editSetTypeBySector
editSmoothMove
editStartChild
editStartFreshLevel
editStartPaint
editStayWhenEmpty
editStunBehaviour
editSuperUFOBehaviour
editTakeSnapshot
editTiltWithX
editTrace
editUnused. Has no apparent functionality.
| Index | Description | Type | Required? |
|---|---|---|---|
| 0 | Internally named "value". | Object |