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 11

Coding with GameMaker Language

In This Chapter

arrow Looking at coding examples from the breakout tutorial

arrow Using GameMaker Language code

arrow Coding keyboard controls

arrow Looking at example code for collisions

arrow Coding score displays

arrow Creating an introductory Room and a closing Room

An extremely powerful feature of GameMaker: Studio is the ability to code using GameMaker Language (GML). GameMaker makes it easy for you to add custom code to your game through the Execute Code Action found on the Control tab of the Object Properties window.

To get you acquainted with GML, this chapter uses coding examples from the in-software tutorial, Coding Tutorial, which shows how to create a breakout-style game using GML. Through the example code, you work with Objects that represent a player-controlled bat, a bouncing ball, and a number of other Objects that you can use in your own games.

This chapter ...

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