Game Development Reference
In-Depth Information
Checking an array for data
Now that we know how to set an array, how do we check the array for data? In this case,
we will check to see whether the first cell is equal to 9. Double-click on the layout and
click on Array . Once you have done this, you can click on Compare at X , as shown in the
following screenshot. This will compare the X values of the array.
Once you are in the Add event window, you can check whatever value you want. In this
case, we want to check the first cell and then check the value, which is 9 . We just set this in
the last event, so let's keep it consistent. This is shown in the following screenshot:
Search WWH ::




Custom Search