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.

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:

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. These controls are only available for Platform Builder Pro.
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.
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!)
When using the command prompt in timelines, you may wish to move NPCs and enemies around. Unlike character movements (above) you do not need to “disable” the enemy or NPC before modifying their movements. However, you may want to resume their normal movement behavior after you are done using them. All of the controls you need are found below. Note that you do not need to specifiy the enemy ID if you are calling the command from a command prompt in the custom enemy settings. By skipping the ID, the command will apply only to the enemy that is running the commands. This also works for some projectile settings. See the full explanation here.
You have some controls for changing the X and Y positions (in pixels) of different things in your games. Note that the precise location of the X and Y is the top-left corner of whatever you are working with. Also, the Y position works as it typically would in computing, so higher Y values mean a lower position in the area.
NPCs, Items, and Enemies can be created on the spot with commands in Platform Builder. In order to do this, you will need to place down an invisible spawning point in your area and give the spawning point a Spawn ID. (The platform Builder manual talks about spawn IDs in the manual when it discusses Advanced Mode.) These spawning points are found under “Invisible Blocks” in your Item Box. When you use commands to spawn enemies, items, etc., they will appear at your invisible spawning point, so long as you specify the proper Spawn ID. Unlike character Spawn IDs, you can have multiple spawning points with the same ID. Note that for many of these commands, you do not need to specifiy the enemy ID of the enemy if you are calling the command from a command prompt in the custom enemy settings. The same goes for items, blocks, etc. By skipping the ID, the command will apply only to whatever object is running the commands. See the full explanation here. Another way to do this is with “with” commands for items, enemies, etc. They are discussed under Miscellaneous Commands.
In video games, HUD stands for “Heads-Up Display” and it is everything displayed on the screen that gives information about the state of the game (such as score, level name, or health.)
When you are using your own sprite for a HUD, you have other controls which can be used to change the display of your HUD. The following commands work only with custom HUD sprites.
When you start playing a game made with Platform Builder, you typically have buttons have buttons in the Title Screen which can save and load from five different game files of your game. However, you can use these commands to work with game files yourself, and you can use as many game slots as you would like. Keep in mind that many of these commands will not work unless you are doing a test run or playing the game. They are also not available to use in Sandbox levels. If you plan to use these commands to save and load manually, you may wish to disable any kind of automatic saving in “Other Settings” of Game Settings.
A conditional is something which has to be true in order for your command(s) to execute. Conditionals are powerful tools to use with your commands to make Platform Builder behave in special ways. To learn more about conditionals and how to use them, visit the Conditionals Page. On that page you will discover that many of the commands we have already seen can be converted into conditionals. Below is a list of conditionals which do not come from any other commands.

Full List of Commands and Conditionals

Below is a full list of all the commands listed above, collected in a single place with a search feature.