0.4 Demo, Inventory Access, and Interactable Objects
Item Drops Plugin for Godot 4 » Devlog


0.4 is in early preview right now. A little more time is needed for the finished release. This post will be updated as changes are made.
Breaking Changes
- ItemDropsSignalBus renamed to ItemDropsBus for name simplification
- PickupsCollector is now PickupsCollector2D and inherits from Area2D to combine functionality for simplicity's sake. The PickupsCollector2D is the area trigger that causes a pickup to occur to a character's inventory
Demo
- Created a 2D sidescrolling demo project that will be included alongside versions of the plugin. You can reuse the code from the project following the same license agreement if you'd like.
- Uses LimboAI Hierarchical State Machine with Behavior Tree Nodes for Player Characters and Enemies.
What's New
- InventoryDrops - You can now use this to drop all or a select number of items from a inventory node.
- Interacter and Interactable2D - Use these to let a player character interact with nearby objects by pressing an interact action key. Included is AnimationToggleInteractable2D which is perfect for playing open / close animations on chests (for dropping loot!), doors, or switches.
- Resource settings for shared data InventoryAccessSettings and SpawnGroup. These will make it easy to define how to access the contents of an external inventory system and mark a node as the pickup parent node for all concerned objects in the game at one go.
Events Added
- PickupEvent - Created & Emitted insignals whenever a scene object is picked up from the game scene
- GatherEvent - Created & Emitted in signals whenever a Gatherable node is harvested successfully
Improvements
- Call to inventory add on pickup can now handle partial adds to inventory. When the inventory script returns the count that was added (int or float), then the pickup will subtract the count value from the resource. If the pickup is depleted of remaining item count, then it will be removed from the scene like always.
Bug Fixes
- Fixed an issue where ShapeEdgeSceneSpawner would sometimes not spawn items in all possible directions
Files
item_drops-0.3.1.zip 15 kB
Feb 25, 2024
Item Drops 0.4 Preview Version & Demo 28 MB
1 day ago
Get Item Drops Plugin for Godot 4
Item Drops Plugin for Godot 4
Gatherable Nodes, Pickup Items, Loot Tables, and Spawning Plugin for 2D Godot Games
More posts
- 0.3 & 0.3.1 Enemy Item Drops & Signal Bus UpdateFeb 25, 2024
Leave a comment
Log in with itch.io to leave a comment.