Help with building a Minecraft-like inventory

This forum is currently in read-only mode.
From the Asset Store
Isometric Stategy Roleplay Game Building and Streets Pack.
  • I hate to ask such a big question, but I have been working on building a Minecraft-like inventory into Apocalyptic for ages now, and I don't know where else to turn.

    Apocalyptic is a bit like Minecraft, but without the cube approach. That, and it's a top down game. It's been going swimmingly, except now I've got to the inventory stage. And. I. Am. Stumped. <img src="smileys/smiley5.gif" border="0" align="middle" />

    The inventory I am trying to build works similar to Minecraft in that you can press a control to open up the inventory, on another layer. The inventory looks similar, in that it is a grid style system. It does not on the other hand, have the "equip bar" thing below, it is just a grid inventory, and you can equip items by dragging them into an equip slot.

    What I was hoping somebody could help me with, or at least get me down the right track, is exactly... how... to do such a thing. I have experimented with arrays, events and private variables, but I can't do this myself. Just some of the issues I keep having is: picking up objects, and placing them in the right part of the grid, as well as handling having more than one item.

    Could somebody help me with this? I understand if that's too demanding, maybe just some info on which way to go with this?

    Thanks so much for any help you could provide!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • this

  • Thanks Vladoss! I will admit that your example was little tricky to follow, but I did learn a lot from it and I'm putting what I've learned to use in building my own!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)