Chapter 12

Using Physics

In This Chapter

arrow Understanding the Physics properties

arrow Working with fixtures

arrow Wrapping Objects around the Room

arrow Adding Physics to Rooms

In this chapter, I introduce you to working with physics in GameMaker: Studio. I draw upon examples from the in-software Physics Tutorial, as shown in Figure 12-1. (Choose the Tutorials tab from the New Project window that appears when you start the software; the Physics Tutorial is found under Advanced.) The tutorial provides information on how to make an Asteroids-style game.

9781118851777-fg1201.tif

Figure 12-1: The New Project window.

Game physics revolves around the idea of making Objects appear more real to the player. By adding physics to your game, you change how Objects react during collision detection and how Objects move through the Room based on energy and force. Physics provide your game a more natural feel. This chapter doesn’t explain everything you can do with physics and GameMaker, but it does provide a solid foundation of how physics ...

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.