Game Maker - Conditions

1 · Maksym Postument · Nov. 6, 2022, 1:45 p.m.
Summary
Hello! Let’s explore conditions in Game Maker. Conditions can be created using if/else or switch statements. Let’s try both options. If/Else In Game Maker if/else conditions are the same as in other programming languages. The block itself looks like this: if (<expression>) { <statement>; } else { <statement>; } For example, we can check the health of our object. If hp < 0, we destroy the object. In order to do this, we will use a new type of event called Step....