Many maze games have objects that you can collect during the game.
To do this, we will need a sprite, and we will need to create an object to display the sprite.
We then add a collision event to the object, so that when the player touches it, something happens.
Create an pickup object called obj_Pickup
Add a Collisions event, and change the visibility to false.
In the player object, add a collison wotht he pick-up and if the pick-up is visible, change the score by 1.
We have already added points to the score, but to show them we need to:
Create a score object.
Each step, get the object to draw the score on the GUI layer!
Add the score object to the room.