Game Development Reference
In-Depth Information
Sprites
As you can see in the Layout1 window, all the game objects in the game are here. You
will also see a system icon. This icon brings up the internal commands and functional
commands that you can use.
If we want to select the sprite to move forward, we can simply select the sprite and give it
a command. Remember, in other environments, you would have to type that in. If we want
to make the sprite move left with the A button, we can simply select the A button and add
some logic that would make the sprite move left, as shown in the following screenshot:
You will also notice that all of the game objects are properly named. It is very important
to name all of your game objects appropriately. When your game has a few hundred game
objects, it will become much easier to manage if your game objects are named properly.
Let's go ahead and select the sprite by double-clicking on it. Once you do this, you will be
able to see a bunch of conditions. These conditions must be met before we give an action
to perform. In the same way as the if statement we looked at a few pages ago, we need to
Search WWH ::




Custom Search