GithubHelp home page GithubHelp logo

whimfoome / godot-inventorysystem Goto Github PK

View Code? Open in Web Editor NEW
43.0 6.0 5.0 449 KB

A powerful inventory management system built exclusively on the Godot 4 engine's new resources

Home Page: https://whimfoome.itch.io/inventory-oasis

godot inventory-system dynamic

godot-inventorysystem's People

Contributors

whimfoome avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

godot-inventorysystem's Issues

Items to be References or Objects instead of Nodes

References clean after themselves automatically, and we don't have to do that in code.

While the current method is that the Items are Nodes, that aren't added to the scene tree (orphan), but still live in memory and when we are done with using them, we free/delete them.

It's just an idea/proof of concept that I might take on in the future.

On second look, the user doesn't need to manually free them, because I already handled that in the system, so Reference is not needed + in C# it's not immediately cleared.

Maybe I should make the Items - Objects, instead of Nodes, because they need less memory, we'll see :)

InventoryComponent add_to_inventory item parameter

Hi, thank you for making this inventory system openly available. I am currently playing around with it. I want to add items to the players inventory when they kill an enemy, called from a function in the players script. The "AddItem.gd" script is quite confusing for me, and I'm not sure how to implement it other than with buttons. I am trying to use The "add_to_inventory" function but am having issues calling it. What exactly do I put in the "item" call? I tried using Item_Apple.gd but it doesnt work, can I add the path somehow without creating a separate node? i.e I want to directly call $InventoryComponent.add_to_inventory(item, amount) in the player script.

Thanks for the help

Wiki Guide

Can you make a written guide? I really want to use this, but i have no idea how :)

Crash

Hi, very cool inventory system but the program crashes when reopening the inventory after having eaten a mushroom, and also if you eat an apple that is inbetween two other apples (making a blank space inbetween).

I am using v3.2.1.stable.mono.official

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.