🆕 Program Conditions | myBetabox

🆕 Program Conditions

The GAME (EVENTS) tab is where all the code that runs your game is stored. This is the most powerful part of GDevelop because here you can make any item, control how the screen works, create characters in your game that can talk to you, and so much more. We encourage you to experiment with this tab and explore everything. Here’s a quick overview of how to use this window.

Let’s take a look at a piece of code we made for the game.

Here we can see an example of code. On the left is an event of an IF/THEN statement when the player hits a health pack. On the right we can see what happens when the player does that action. When we collide with a health pack, the character adds health (which is currently at zero). Then, we program the game to delete the health pack once it’s used so the player can’t reuse it.

Try coding your own event by clicking the circled button on the toolbar. Can you make a super coin? Can you make a shop to spend coins? Can you make an object that will hurt the player?