Help, tutorials and examples for Game Maker

Hexsweeper 2
click to visit
Minesweeper redefined!

The Black Hole that Wants to Eat Me
click to visit
Stranded in space close to a black hole...
Guliseo Spirit
click to visit
Battle your way through 15 action-packed worlds!

Platformer Engine
click to visit
An Engine to help you start a 2D Platformer Game.
Home Search/Browse Comments Trollsplatterer You can help! Links
Terms&Conditions This website has been designed for Firefox Design by Trollsplatterer (©2018)

Weapon Inventory  download now

This example shows a way to implement a weapon inventory system for a platform shooter. I tried to use as little GML code as possible, if I did use code, it's clearly explained how and why (I think). The system shows the currently selected weapon and its ammo at the bottom. There's a button to show the weapon-overview, a keyboard-shortcut W has been added. When showing the overview (object inventory_screen), all other instances are deactivated and you can see the full information on the state and powers of the weapons.


General Rating
Your Rating*


By Comment
Cool example it was really helpfull :) Houken
thanks for this, it was really helpfull. ill be sure to give you credit when the game im using this for is released!

* : The rating makes use of your IP-address to remember your vote. IP addresses may change, but your vote will be kept, even though it may no longer be visible here.