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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.