Book Image

Construct 2 Game Development by Example

By : John Bura
Book Image

Construct 2 Game Development by Example

By: John Bura

Overview of this book

Table of Contents (16 chapters)
Construct 2 Game Development by Example
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Where to Go from Here
Index

Checking an array's properties


Once you have done this, you can see that the object type is called an array. This is like adding a sprite. You can have multiple sprites in one game and you can have multiple arrays in one game. If you wish to add more than one array, simply double-click on the background and add another one. If you want to change the name of the array, you simply need to select it, press the F2 key, and then rename it. Click on the array on the right-hand side and look to the left to see the properties, as shown in the following screenshot:

You can see the properties of the array in the preceding screenshot. It has a width, a height, and a depth. What this means is that arrays can be one-dimensional, two-dimensional, or three-dimensional. Currently, we have a one-dimensional array. This means that it only has a width. In this case, the array will be a single row and looks like the following table:

          

It has a width of 10 cells with a height of one cell and a depth of...