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

Working with pickups

Power-ups, treasure, items, collectibles; Pickups, as they will be referred to in this text, go by a variety of names. In this game, there will be two types: one will simply increase the score while the other will give Vlad a boost in health. These sound like simple uses for pickups, but they can also act as helpful hints to the player, guiding them if they get stuck or helping them remember an area they may have already visited.

Gathering resources to create pickups

The pickups will require two sprite resources, two objects resources, and one script resource. The object resources will have only a Create event. The Collision events will be added to obj_vlad so it can interact with the pickups.

Initializing sprite resources for ...

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