Trollsplatterer

Help, tutorials and examples for Game Maker

Spiral Lords
click to visit
Lead your empire to conquer the galaxy.

Hexsweeper 2
click to visit
Minesweeper redefined!
Endurance 3d
click to visit
A survival game with many weapons and enemies.

RK-1 Revenge of the Rats
click to visit
Use RK-1 to defeat nasty burglar insects!
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.