Best way to create this Resident evil style inventory..?

Hi,
I am learning UE blueprints. Here, I am trying to re-create this inventory system from Resident evil 3. What is the best way? I can create a simple inventory. But I don’t know, how to create one with different sized slots… . By the way, I am using Ue 5.4…Thank you

its still just an array, its just that the shotgun takes two slots in that array
so you item data needs to know its dimensions and you inventory needs a way to search through the array and find available room

So, if I add dimensions of the item and multiply it to take two slots it will work right…?

its a bit more complicated, items could be 2x3 in dimensions, when the player tries to place an item in a slot (index X) you have to iterate over all the slots it will take,

you’ll need a function to convert index to grid and visa versa, ie grid (x,y) = index Z

Oh ok. One more doubt. I’ve created this layout with widgets. So can we create an inventory using this preset?. If so, how do we do that…?

im not sure what you’ve done but it need to be dynamic. the inventory should just be a grid but the items in the inventory can overlay the grid

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.