Category: Level 05

  • Level 05 Lesson 03 [Better Conditions]

    In the past several lessons we have used simple if statements to check the values of variables to help us decide whether or not to execute some code. While these simple conditions work well, sometimes you need slightly more complicated conditions in your code. In this lesson we will take a look at some of…

  • Level 05 Lesson 02 [Global vs Instance Variables]

    We’ve been making good use of variables in the past few lessons. The variables we have been using are called instance variables because each instance (object you create in the game) keeps the variable inside of itself. There are other types of variables in programming. One type is a global variable. Global variables are not…

  • Level 05 Intro

    Congratulations on making it this far in the course and surviving all those modifications in Level 04.  Now you are ready for Level 05. In this level we will introduce you to a few new concepts that you will find very useful in any game or program that you decide to create.  We will explore timing, introduce…

  • Level 05 Lesson 01 [Timing Things with Counters and Alarms]

    In the previous lesson/s you used random numbers in the step event to make objects perform tasks at random times. But sometimes you want an object to perform a task at specific time intervals. This lesson will cover two popular methods for making objects ‘time’ their actions. Part A – Using Counters Watch the video:  05-01-A Donefile:…