Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

This inventory is awesome! I'm a complete beginner in Ren'Py doing my first project and this saved me loads of time. Question though, is it possible to make the items in the inventory clickable, and when clicked, a screen shows up with the description and prompts you if you want to use it?

(+1)

Hey, thanks for showing interest in my project. I'm happy to hear it's saving time. Well, that was the intention. So beginner can instantly integrate the inventory system in their game without going through all the technical stuff.  

And about the quick hover menu action, you ask, currently it does not have such a feature, 'cause I wanted to make it more generalized so it suits all types of projects, but it's possible if you add that feature to the project code. The system is scalable in nature, so anybody can modify and do whatever they want.

I did not add such features 'cause it will add more complexity to the code, and possibly it might introduce more bugs. Currently, the system is stable, so I kinda kept it like that, but I do understand that such a feature would be nice.

If enough people think it's necessary, then I will add it in the future.  If you don't like using the item function currently, you can use it with a menu. That might not be exactly what you're looking for, but it's more interactive. Also, if you have any more questions, feel free to reach out. 

Sure thing! Also another beginner question but how do I move the position of the inventory box? I want to move it a bit lower and I cannot find it for the life of me.

(+1)

It's super simple just go to components > inInventory_system> inventory_style.rpy  Find the code block name: 
style inventory_frame is frame: 

To change the  Y Position, you will see something like this:   yalign 0.3. Change its value to 0.4 or 0.5 based on your need. The position should go up and down based on incrementing or decrementing the value. If you want to go try left and right, then change the X position. 

 

Oh wow, thank you for the quick response! You're the best! :D I assume changing the size of it all can be found there too or?

(+1)

You're welcome! Yes, style customization is fully supported the "style" file has everything you need to create a custom inventory to match your game's UI. Just change the source images or adjust the slot size  as you like. Everything's accessible, so modify away! Check out the docs (especially "Ren'py Official") to get familiar with the style code. Have fun customizing!

(+1)

I was able to customize the style of the box and its looking really good so far! I have another question (sorry) but how do I make the items inside the inventory slots clickable? Is that even possible?

Anything is possible if you have a clear goal! There’s more than one way to make inventory slots clickable in Ren’Py. Every developer has their own approach so you’re not limited to just buttons. For now, just know it’s achievable with a bit of Python and UI work.

Also, I’ve seen other people request this feature, so there’s a good chance I’ll include clickable inventory in a future update. Stay tuned and keep experimenting don’t hesitate to share your ideas or suggestions!  These suggestion will shape the new version of the inventory system.