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

Chapter 7. It's in the Name – Platforms and Collisions

In the previous chapter, we began the construction of a platformer game. So far, the game's main character, Vlad, can run and jump through the use of a finite state machine. Up to this point, however, there hasn't been anything for him to actually run and jump on! In this chapter, platforms will be created that he'll be able to interact with.

First, the concept of collision and the functions available to work with collision will be explained. Then, three types of platforms will be created as shown in the following list:

  • A solid platform
  • A platform that Vlad can walk in front of but still jump on top of
  • A platform that will be moved through the use of path resources

Collision – a crash course

Before ...

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