User:Polavux/Technical:Bloons Super Monkey 2 (Flash)

From Blooncyclopedia, the independent Bloons knowledge base
Revision as of 07:37, 14 March 2025 by Polavux (talk | contribs) (notes from researching bsm2 flash levels, also something for that technical information namespace idea)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 Yes
1 The Y coordinate. Number Yes
2 The type of Bloon according to its internal ID. Number Yes
3 If false, this Bloon and all Bloons created from child behaviours do not spawn Blops when popped. Defaults to true. Boolean No

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 Yes
1 The distance. Number Yes
2 The type of Bloon according to its internal ID. Number Yes

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 Yes
1 The radius. If set to 0, no Bloons generate. Number Yes
2 The type of Bloon according to its internal ID. Defaults to 0 (Red). Number No
3 Scales the ellipse on the X axis. Defaults to 1. Number No
4 Scales the ellipse on the Y axis. Defaults to 1. Number No

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 Yes
1 The Y position of point A. Number Yes
2 The X position of point B. Number Yes
3 The Y position of point B. Number Yes
4 The X position of point C. Number Yes
5 The Y position of point C. Number Yes
6 The X position of point D. Number Yes
7 The Y position of point D. Number Yes
8 If the quality is specified, this determines the speed. Otherwise, it determines the duration. Number Yes
9 Determines the "quality" of the curve. Defaults to 10000000. Number No

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 Yes

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.