Advice on creating a 2D Inventory System with Unity

Recommended Posts

Hi guys,

Quick question.. do you know good tips or know a good Unity Tutorial that includes the following:

- How to make a small 2D Inventory that appears on the upper part of the screen
- For Inventory to be "scrollable" from left to right, in case there are many inventory items
- To be able to click on certain items and have a zoom-in on that object
- Ability to not just use items on game objects but also to be able to combine certain game objects 

I'm using the latest Version of Unity. Thanks :)

Share this post


Link to post
Share on other sites

The first hit on google is a tutorial on the Unity site: https://unity3d.com/learn/tutorials/projects/adventure-game-tutorial/inventory

I haven't taken it so I don't know how good it is, but it's probably more than enough for your needs.

The bulk of this comes down to Unity's UI system and an understanding of arrays, so start with those two things if you're not already familiar.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Forum Statistics

    • Total Topics
      628752
    • Total Posts
      2984509
  • Similar Content

    • By tariel36
      This is not 100% networking question but rather choosing the right path.
      We design SP/MP multiplatform game with similar gameplay to all those browser games like OGame (etc.) or "idlers" like Fallout Shelter - that means, you choose actions to do and then leave for some time untill everything is finished then repeat. To implemenet the client-side we'll use C# with Mono or something like that.
      The SP segment would act as tutorial or so, the same mechanics but much faster, which requires game logic to be available localy.
      On the other hand the MP segment would act like slim-client which only gets data or requests changes to user's account from game server. Game logic and mechanics stays the same as SP, but slower.
      Since it's not any action-like game it does not require complex server architecture so there comes the question.
      Is it worth or required to implement our own server-solution, implemented with C#/CPP hosted on VPS or dedicated server (or maybe on rented IIS hosting?) for such "simple game"? After some brainstorming we've came to conclusion that we could implement such solution with PHP or other "web" programming language for sake of more common hosting solution.
      The question is, which solution is better (since all have pros and cons):
      Own game server with VPS or so Existing server solution with simple engine implementation and common hosting solution (like PHP or so) PS. Sorry for bad english.
    • By ekeagle
      Hi,
      I've worked many years in IT network security and another support related jobs.
      I really want to become a game developer and even made a video game as my university graduation project.
      I feel I need to learn more so I can program in a more elegant way.
      I'm actually unemployed and I'm not sure if the best decision is to struggle to get a job as a back end developer so I can develop more my skills in algorithms and more elegant ways of programming, while I also learn some digital animation after office. There aren't many game development jobs here and I just want to create my game by myself.
      Should I become a back end developer or should I just keep taking IT support jobs while making games and keep learning in my free time?
      Which is the best decision ?
       
       
    • By th3luck
      Hello everyone! I have decided to make a crane simulator (first person with view from cabin). Mostly, I aim on realism as I want this simulator to be used by real сrane operators to upgrade their skill. That's why I need an engine to easily work with physics (such as wind, rain, weight of cargo and etc). Have to mention that I don't really care about graphics quality. Maybe, but this has the least priority, after completing the whole project I would need a VR version of it, but for now I am planning just a PC version. 
      Here is main points of my project:
      Physics has the major priority Using tools suitable for a beginner developer Ability to make a VR version of the simulator without rewriting of the whole project My experience in programming is mostly in computer science, so I am familiar with C++ and Python, but only on a level of coding some cool algorithms. That's why I don't really depend on a specific language. 
      What engine and developer tools would you recommend to use? Easy to being with for a low-skilled like me, but suitable for my project.
      Thanks,
      Mike
    • By NeverSay
      I think I might be with a team that is deep within development hell and they are all in denial about it. I have been working on a project with a small group and we all have no previous experience or educational background. The guy who had pulled us altogether had an idea for a game but the story is so confusing and convoluted after 3 years of working on this project... I still have no idea whats going on with the story. All I can say is its a platformer with a large explorable map and systems and mechanics dreamed up so grand out of all the 100 things he wants in the game we still only have 2 mechanics down. Every time I have tried to throw my voice in and suggest maybe we should put a pin in this idea and focus on smaller experiences so we can build our skills up and tackle it later when we know more of what we are doing, I get shot down. I'm told, "oh it will only take a year to make this game" of which both I and the artist look at each other very doubtful each time he says that. 
      So leaving out the backstabbing power plays a certain member of the team kept using which blocked me from having access to the game so I couldn't test out my work for myself, phage requests on what they wanted animated which lead to me redoing animation more time then I think was needed. I mean I redid the run animation over 60 times and in the end, they chose to use the very first freaking one I made! Whenever I tried to think logically and ask for a group meeting to talk about characters and how they move so I could get a better idea of what to do I was told "No, no, no this back and forth is a faster way of working"....again run animation took 60 attempts before they used the first run cycle I made. 
      In the end, we weren't working towards making the whole game, it took us 2 years and 5 months to make a demo of the game. Then our programmer disappeared and also took with him the code for the game. We should have stepped away from that game and accepted, for the moment that it might be time to take a break from it and focused on crafting smaller experiences to build up our skills and our group's portfolio but no that wasn't to be. We where to start again from scratch, new programmer, new textures and level designs and new rigs and animations. 3 years of work has gone down the drain and now I have to start again... the only problem is I can't bring my self to do the work. 
      I have become stagnant where I am and I feel like its time I should move on. I want to try and do things my way and start small and work my way up and not plunge headfirst into a project that feels like an ocean in scale for a small team. I want to focus on my own skills and learn new ones and understand more than just one trait in the spectrum of game design. Though since I have been with the team for so long and put so much time and money into this venture...I'm scared to walk away. Though on the other hand how long are we gonna spend on this game, is it gonna be another year like the lead designer said (again and again) or will it be another 3 and all we will have to show for it is a shiny new demo and none of the full game...
      Should I suck it up and try and kick my butt back into gear or is this the time to step away and look into new possibilities?
    • By DogmaStudios
      What techniques do you use to help develop the plot alongside gameplay when you finally have an idea for a story down?
  • Popular Now