Help with building a Minecraft-like inventory

For questions about using Classic.

Post » Wed Nov 02, 2011 11:24 am

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.

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!
B
8
S
2
G
2
Posts: 144
Reputation: 1,588

Post » Wed Nov 02, 2011 12:27 pm

B
38
S
15
G
6
Posts: 238
Reputation: 7,760

Post » Sat Nov 05, 2011 10:53 am

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!
B
8
S
2
G
2
Posts: 144
Reputation: 1,588


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests