The [ col ] command
[ col ] is short for column. This command allows you to quickly build columns of objects. The [ col ] command takes atleast four arguments to execute: [ col object x y length ]. Here is an example of a [ col ] built with platforms on x:0 y:10 with an upward length of 5:
- col platform 0 10 -5
You can also create a [ col ] of spikes, or springs, or crates or more. Check out an example below:
- col spike 3 12 4
- col spring 0 6 -3
- col crate 4 7 -10
Notice the structure of the codePop above. We first specify our command, then the object being built, then three arguments x,y coordinates, and the length we want the [ col ] to be.
Also note that when the length is negative, the column will be built to go up not down. This is because in Beta and programming in general, the Y-Axis is inverted.
[ col ] Command Arguments []
In the codePop example shown above, there are three numbers [ 0 10 -5 ]. These numbers represent the x, y, and length of the [ col ] being built. The three numbers are what we call arguments. Arguments are required for this command as well as others, you won't be able to build your [ col ] without them.
Using [ col ] with Objects[]
Below is a list of objects that you can use the [ col ] command with to build your Beta environment. Try them all out to see what they do.
col actor x y length | col boardPlatform x y length |
col boost x y length | col crate x y length |
'col door'x y length | col impulse x y length |
col
memory x y length |
col
movingPlatform x y length |
col
'platform' x y length |
col
spike x y length |
col
spring x y length |
col
timer x y length |
Using [ col ] with Options[]
If you want to customize your [ col ] of platforms or other objects, you will have to learn how to add options after your arguments (in this case, after x,y,length).
You can get the options of any object by running a [ get ] command on the object in question. Once you've found the option you'd like to add, you just append it to your [ col ] command. Check out the example below:
- col platform 0 10 -5 angle:90 height:35 width:350
In the codePop above, the options are angle, height, and width.
Keep in mind that there are many options for each object. Play with them!