O'Reilly logo

GameMaker: Studio For Dummies by Michael Rohde

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required