Chapter 4

Adding Actions to Events

In This Chapter

arrow Assigning an Action to an Object

arrow Giving an Object something to do

arrow Making your Object move

arrow Keeping score and more

In this chapter, I discuss each of the Actions that you can assign to Objects. You can think of Actions as the verb in a sentence: They tell the Objects what to do, when to do it, and how to do it. Actions are what causes a clown to bounce off the wall, or a plane to shoot a bullet, or an asteroid to split into pieces. By using Actions, you save yourself from having to write the code yourself. I love Actions because I’m not great with writing my own code, and Actions provide an easier and quicker way for me (and you) to create a game.

tip.eps If you want to write the code yourself, you can do that, but you still need to assign an Execute Code Action to an Event (see Chapter 3) within the Object. Then you add your code to the Execute Code Action.

How to Assign an Action to an Object

Here’s a quick, top-level procedure on how to ...

Get GameMaker: Studio For Dummies now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.