Trollsplatterer

Help, tutorials and examples for Game Maker

Infinite Stick War of Death V3
click to visit
The third remake of the epic, endless war God has started.

Hexsweeper 2
click to visit
Minesweeper redefined!
Platformer Engine
click to visit
An Engine to help you start a 2D Platformer Game.

The Invention of Life
click to visit
Game for the GameJolt Invention Contest.
Home Search/Browse Comments Trollsplatterer You can help! Links
Terms&Conditions This website has been designed for Firefox Design by Trollsplatterer (©2017)

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.

Ratings

General Rating
Your Rating*

Comments/Suggestions

By Comment
Houken
2009-07-09
Cool example it was really helpfull :) Houken
peanutgames
2008-12-31
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.