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

Integrating the moving platforms

Before integrating instances of obj_moving_platform into the room, several scripts must be modified and events created. These modifications are in the following list:

  • The instantiation of obj_moving_platform in Creation Code of rm_level1
  • The addition of a new variable in the Create event of obj_vlad
  • The creation of a Collision event within obj_vlad for colliding with instances of obj_moving_platform
  • The creation of an End Step event for obj_vlad
  • An update to scr_test_collision

Creating instances of obj_moving_platform

As there are multiple paths, instances of obj_moving_platform should not be added to the room. Individual object resources could be created for each path, utilizing path_start in each one's Create event; ...

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