User:Polavux/Technical:Bloons Super Monkey 2 (Flash): Difference between revisions
mNo edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
==Level structure== | ==Level structure== | ||
{|class="wikitable" | {|class="wikitable" | ||
!Character | !Character | ||
| Line 16: | Line 14: | ||
|} | |} | ||
====AddBloon | ==Behaviours== | ||
===AddBloon=== | |||
Spawns a single Bloon at the specified coordinates. | Spawns a single Bloon at the specified coordinates. | ||
{|class="wikitable sortable" | {|class="wikitable sortable" | ||
|+Parameters | |||
!Index | !Index | ||
!Description | !Description | ||
| Line 45: | Line 47: | ||
|} | |} | ||
===AddBloonPolar=== | |||
Unused. Spawns a single Bloon | Unused. Spawns a single Bloon at the specified [[wp:Polar coordinate system|polar coordinates]]. | ||
{|class="wikitable sortable" | {|class="wikitable sortable" | ||
|+Parameters | |||
!Index | !Index | ||
!Description | !Description | ||
| Line 69: | Line 72: | ||
|} | |} | ||
===AddEmptyBloon=== | |||
Unused. Takes no parameters. | Unused. Takes no parameters. | ||
====CreateCircle | ===AddShields=== | ||
Creates a group of Bloons in a | Adds a [[Shielded Bloon (BSM2)|shield]] to each Bloon in the group. Does not affect child groups. | ||
{|class="wikitable sortable" | |||
|+Parameters | |||
!Index | |||
!Description | |||
!Type | |||
!Required? | |||
|- | |||
|0 | |||
|The health of the shield. | |||
|Number | |||
|{{y}} | |||
|} | |||
===CreateCircle=== | |||
Creates a group of Bloons in a solid ellipse. | |||
{|class="wikitable sortable" | {|class="wikitable sortable" | ||
|+Parameters | |||
!Index | !Index | ||
!Description | !Description | ||
| Line 106: | Line 125: | ||
|} | |} | ||
====FollowBezier | ===CreateFromBitmap=== | ||
Generates a Bloon group from a <code>BitmapData</code> 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. | |||
{|class="wikitable sortable" | |||
|+Parameters | |||
!Index | |||
!Description | |||
!Type | |||
!Required? | |||
|- | |||
|0 | |||
|The name of the asset. | |||
|String | |||
|{{y}} | |||
|} | |||
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. | |||
{|class="wikitable" | |||
!Hex | |||
!Type | |||
|- | |||
|<tt>#7B7B7B</tt> | |||
|Lead | |||
|- | |||
|<tt>#FFFFFF</tt> | |||
|White | |||
|- | |||
|<tt>#ED1C24</tt> | |||
|Red | |||
|- | |||
|<tt>#000000</tt> | |||
|Black | |||
|- | |||
|<tt>#620505</tt> | |||
|Ceramic | |||
|- | |||
|<tt>#B5E61D</tt> | |||
|Green | |||
|- | |||
|<tt>#FFF200</tt> | |||
|Yellow | |||
|- | |||
|<tt>#00A2E8</tt> | |||
|Blue | |||
|} | |||
===CreateRain=== | |||
Unused. Takes no parameters. | |||
===FollowBezier=== | |||
Causes the group and all child groups to follow a [[wp:Bézier curve|cubic Bézier curve]]. | Causes the group and all child groups to follow a [[wp:Bézier curve|cubic Bézier curve]]. | ||
{|class="wikitable sortable" | {|class="wikitable sortable" | ||
|+Parameters | |||
!Index | !Index | ||
!Description | !Description | ||
| Line 165: | Line 234: | ||
|} | |} | ||
====RemoveAtAge | ===RecordPath=== | ||
===RemoveAtAge=== | |||
Causes the group and all child groups to expire if the parent's age is greater than the specified lifespan. | Causes the group and all child groups to expire if the parent's age is greater than the specified lifespan. | ||
{|class="wikitable sortable" | {|class="wikitable sortable" | ||
|+Parameters | |||
!Index | !Index | ||
!Description | !Description | ||
| Line 179: | Line 251: | ||
|} | |} | ||
===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. | 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. | ||
===RemoveIfGreaterThanX=== | |||
===RemoveIfLessThanX=== | |||
===Repel=== | |||
===ReverseDrawOrder=== | |||
===Rock=== | |||
===Rotate=== | |||
===RotateAroundPoint=== | |||
===RotateSelectedTool=== | |||
===RotateWithVelocity=== | |||
===SaveFormation=== | |||
===SaveLevelsToSource=== | |||
===Scale=== | |||
===ScaleAroundPoint=== | |||
===ScaleOnX=== | |||
===ScaleOnY=== | |||
===ScaleSelectedTool=== | |||
===SelectAndGroup=== | |||
===SelectAndModify=== | |||
===SelectBackgroundAsset=== | |||
===SetPhase=== | |||
===SetPosition=== | |||
===SetTypeByBand=== | |||
===SetTypeBySector=== | |||
===SmoothMove=== | |||
===StartChild=== | |||
===StartFreshLevel=== | |||
===StartPaint=== | |||
===StayWhenEmpty=== | |||
===StunBehaviour=== | |||
===SuperUFOBehaviour=== | |||
===TakeSnapshot=== | |||
===TiltWithX=== | |||
===Trace=== | |||
Unused. Has no apparent functionality. | |||
{|class="wikitable sortable" | |||
|+Parameters | |||
!Index | |||
!Description | |||
!Type | |||
!Required? | |||
|- | |||
|0 | |||
|Internally named "value". | |||
|Object | |||
|{{y}} | |||
|} | |||
===UFOBehaviour=== | |||
===UndoAddBehaviour=== | |||
===UpdateFromFunction=== | |||
===UsePower=== | |||
===Wave=== | |||
===Wobble=== | |||