O'Reilly logo

GameMaker Game Programming with GML by Matthew DeLucas

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

Moving platforms with paths

Stationary platforms, such as the ones created previously, can only do so much. There are a wide variety of platforms that can be created for this type of game, but one popular type involves moving along a path.

Path resources in GameMaker: Studio allow an object to move along a predefined curve that is defined by a set of points. In this section, two simple paths will be created, and a new platform will be constructed that can move along these paths.

Creating path resources

Path resources in GameMaker: Studio can be created by either going to Resources | Create Path or pressing Shift + Ctrl + P. The Path Properties interface with an example path is displayed in the following screenshot:

New points on the path can be created ...

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