• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Legacy GM Help! How Can I show Item Progression??

M

MadHatter06

Guest
I am creating a 2D platform with GM v1.4. I want to be able to show that the obj_Character as picked up 1 out of 4 items within the game and changed this progression of how many items the player needs within the levels as they progress. I also want it so when the enemies collide with player that the item is taken away. Any advice or help is appreciated.

Thanks
 
My advice is to just try and do it! It's much easier to help if you show us some not-working code. Best way to learn is to fail.

But I'll offer some advice. In the room start event you can grab the number of "coins" in the room using instance_number(). Store the returned value in a variable called "total_coins" or something like that. Then have a variable called "current_coins" and set it to 0. And every time the player collides with a coin, increment current_coins by 1 and destroy the coin. Finally, you can draw out these variables to the screen. I recommend using the GUI event for this because all the GUI coordinates are "screen relative". So even as your view/camera moves, the stuff drawn on the gui layer will stay in the same place!

So, give it a shot, and let us know if you run into any problems with actual code. Good luck!
 
Top