Day #8 Item Splitting and Items


With today's work I'll say the inventory core functionality is done. It may change in the future though. I worked on item splitting, with a popup in which you'd input the amount to be split. I also added loot table data for when I want to spawn items from objects into the world, and finally, on items themselves, which you can see bouncing on screen.

The items you see change because I coded the texture to be changed when I change the name on the editor (it can be done with code as well) so when I want to spawn X item I just instanciate it, and change its name dinamically so it'll appear as item X. Though it's only a sprite that gets deleted on contact with the player (not yet added), it could then be placed on the inventory as easily as updating the database with code.

The item sprites had a background to hide the slot sprite and has been removed. Though I'll think of how to hide that on the future.

Files

Day8.zip 4.7 MB
Apr 08, 2021
Day8Executable.zip 13 MB
Apr 08, 2021

Get Forbidden Entry

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.