Menu Close

Command Prompt

The command prompt is a powerful tool which allows you to "talk" to Platform Builder and tell it what to do.

One could say that the command prompt is like something “in-between” a spoken language and a programming language. The experience with the command prompt is comparable to the experience of telling your smartphone what you want it to do. Most of the commands are intuitive, the same thing can be said multiple different ways, and you only need to learn some basic concepts and vocabulary. Furthermore, nothing is case-sensitive or spacebar-sensitive (with a few exceptions), and you don’t need to worry about getting an error if something is entered wrong. After you have mastered using the command prompt, you may find that learning an actual coding language will come a little easier for you.

The process is quite simple. Each command must be placed on a single line. Most commands are split into three parts: The command, the operator, and the value.*

  • The command is what you want to change (For example, health, maximum ammo, the ability to perform a “super jump.”)
  • The operator is how you want to change it. “=” will make your command equal to something. “+” or “-” will add or subtract. “*” or “/” will multiply or divide**. (Do not use “x” or “X” to multiply. You must use the star). The operator you can use varies on the command. Sometimes you can use any of these operators, but sometimes you can only use =.
  • The value is what you want to change it to. (For example, 100, true, 50, action 3, etc.) This varies on the command. For instance, if you are turning a setting on or off, your command would be the name of the setting and your value would be true or false.*** If you are changing the music for your area, your value would be the name of the music track. If the value is a number, you will usually need to use whole numbers. But some things work with decimals and negative numbers as well. It all depends what command you are working with.

When you finish writing out your commands, right-click on your command input and Platform Builder will check to see if you used any commands which are not recognized.

Select from a list of categories below to learn about the different commands you can use with Platform Builder's Command Prompt:

You will need a larger screen to view a grid of all the different commands. Come back here on a tablet or computer browser.

The following are command setting for character physics. There are a couple things to keep in mind when using these settings. Every numerical value ranges from 0-100 where 0 is the minimum, and 100 is the maximum. 0 would be like placing the slider all the way to the left in the character physics editor, and 100 would be like placing the slider all the way to the right. This is true even when the final result is a different range. For instance, Jump Delay can be from 0 to 2 seconds in length. To make the jump delay 2 seconds, you would set it to 100. For 1.5 seconds, you would set it to 75. For 0 seconds, you set it to 0.  Many of these commands actually let you go as high as 500, but we do not recommend you exceed 100 or else you may encounter problems.  The physics can be changed even if the character movement style is not set to custom. However, the character movement style will need to be permanently custom if you wish to permanently change the physics from a permanent custom item.
When using the command prompt in timelines, you may wish to take control of how the character moves so that you can design interesting cut-scenes. That is what the following commands are for. They allow you to control the character in the sense that you “take over the keyboard,” telling the character to behave as if certain keys are being pressed and/or released. (Note: Although technically NPCs are also characters, these commands do not apply to NPCs. To control NPC characters, keep scrolling down!)
The following are various commands for controlling the view of Platform Builder. They can be useful for gameplay, but also handy when you are doing cut-scenes for your game. For instance, you can cause the view to travel in certain direction to keep up with whatever it happening in your cut-scene. You could also use a timeline to cause the view to travel in a special path for an exciting gameplay .
The following are a couple commands which you can use when handling timelines and menus. If you are looking for commands which would be useful to use within timelines, look to view movements, controls for character/enemy/NPC movements, and displaying text.