• Register
Post news Report RSS Lost and Tiny - Devlog #003 - Inventory System

I have looked up for a few inventory systems, and I found one that brought me remotely close to what I wanted to achieve. There are still quite a few issues that I wish to fix, but that will come in future updates

Posted by on

12.12.2023 - 17.12.2023

I spent pretty much the entire week trying to make an inventory. I found a tutorial that helped me create an inventory system that allows me to store items inside. This is not quite how I wanted it to go, I wanted to have a system that allowed the players to pick up the items by pressing E, instead of having the player automatically pick up the items as you can see on the file provided below.

EarlyInventorySystemgif 1

I am not a programmer, so I still have no idea how to do this, but I believe that I will find the answer in the near future as I am sure something like this is quite easy to achieve. For now, I just want to be able to execute the main idea. The main idea is, having the player walk around, jump, grab items and take them to the safe spot.

In the scripts I am currently using for the inventory, as you can see in the video, it seems that the items spawn on the wrong side whenever the character is facing the left side, as if the spawner was not rotating with it towards the correct direction. So the items end up hitting the player's behind instead.

image 2024 01 18 224635412


As I am writing this, I now realize that I was having an issue where whenever the player threw the items out, the collider in the item would collide with the player, which would cause the player to be pushed back. The solution I had found for this, was to put a sentence in the script that stated that the items should spawn a few frames further away from the player, and that solved the problem. So I am now realizing that maybe that part of the code has to have some other sentence that updates the spawner’s position, to match the current direction the player is looking. This is just a small detail to correct, so I will leave it for later as well.

For the next step, I will be trying to program the ants, to allow them to walk on walls since it is literally what they do. I am also trying to figure out how the enemies try to catch up to them, they will all be insects after all, and they are all good crawlers and climbers and flyers or whatever. I would like the enemies to have a good intelligence, like almost AI level. I want to make them the best enemies I can, with the little I know about programming.

I should probably also finish and add the idle, running and climbing animation soon… Oh well! Thank you for being here anyway! I am super glad I am being able to work on this and actually make some progress! I will be back soon with more updates! Thank you for accompanying this, guys! You guys take care of each other and yourselves!! >:D

I'll see you guys next time!

Thanks for being here!

ThxforWatching

-Z


Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: