GameMaker Studio 2 (2.3)
Icon

Inventory engine

Pikku-a

You must be logged in to obtain assets

Description

This inventory system is at the same time flexible and easy to use. You can customize it a lot. For example, you can change the style (sprite, colors and fonts) and max slots (how many different items fit).

Most important features:

  • Store items

  • Set functions to the items, so they can be used

  • Save the inventory

  • Permanent items

  • Items organize themselves

  • Works with views

  • Very flexible and customizable

  • Incredibly easy to use

Everything works with scripts. The scripts included are:

  • inventory_toggle() - Opens or closes the inventory

  • inventory_add_item() - Adds an item to the inventory, with custom name, description and function

  • inventory_use_item() - Uses an item

  • inventory_remove_item() - Removes an item from the inventory without using it

  • inventory_change_style() - Changes the colors and fonts of the inventory text

  • inventory_change_sprite() - Changes the sprite used by the inventory

  • inventory_set_max_slots() - Sets the amount of slots the inventory has (how many items fit)

  • inventory_set_position() - Sets the position of the inventory in the screen, and its width and height

  • inventory_set_scroll_speed() - Sets how fast the inventory slots scroll up and down when using mouse wheel

  • inventory_save() - Saves the inventory

  • inventory_load() - Loads a saved inventory

  • inventory_delete() - Deletes a saved inventory

  • inventory_is_full() - Checks if inventory is full

  • inventory_item_exists() - Checks if there is a specified item in the inventory

  • inventory_destroy() - Destroys the inventory

There are many instructions and examples. I have tried to make this as easy to use and flexible as possible, like my other assets.

End User Licence Agreement (EULA).

Age Rating: 4+

Versions

GMS2 - Version 1.0.0. Published March 15, 2019

GMS2.3 - Version 1.2.0. Published April 27, 2021

  • Changed gui & gui2 layers to hud & hud2 for better compatibility with my other assets

  • Changed draw events to draw GUI on control_inventory & slot objects

  • Added optional true/false argument to inventory_toggle() function

  • Fixed bug with inventory_item_exists() script

  • Changed s_rect sprite transparency

  • Fixed bug with fullscreen switching in the example

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait