A [ boost ] is an object which acts as a boost for any object (i.e balls, crates, actors, Beta himself) that interacts with it.
Boosts are similar to springs, however they are much stronger by default and are typically used to deliberately propel Beta to another place.
Building with [ boost ][]
To add a boost, type the following into the terminal:
- add boost
To add a column [ col ] of boost's type:
- col boost 0 10 5
To add a row of boost's type:
- row boost 0 10 5
What are those numbers in the 'col' and 'row' commands?
The 0 10 5 in the [ col ] and [ row ] commands are 'x y length'. The 0 is for the starting x point, the 5 is the starting y point, the 10 is for length.
Customizing a [ boost ][]
You can use the [ get ] and [ set ] commands to get and set all your boost characteristics. Here's an example of using the [ set ] command to change the angle, radius, and strength of your boost:
- set boost1_1 angle:60 radius:140 strength:140
[ get ] and [ set ] are very important to know in order to customize your game design, make sure to read our wiki entries about them in the codePop library section.
Running a [ get ] shows you 29 characteristics of a boost that you can change. These are listed below:
active | allowRotation |
alpha | angle |
blendMode | bodyType |
bounce | bumpForce |
bumpable | callbacks |
classCollisionsOn | collisions |
collisionsOn | density |
dynamicFriction | gravMass |
graveMassMode | gravMassScale |
magnetic | radius |
name | rollingFriction |
skin | staticFriction |
strength | team |
visible | x |
y |