Search Unity

how to make an inventory of what style?

Discussion in 'Scripting' started by Giannigiardinelli, Dec 4, 2014.

  1. Giannigiardinelli

    Giannigiardinelli

    Joined:
    May 8, 2014
    Posts:
    189
    Hello everyone,
    I try to make an inventory of this style (the AloneintheDark games)
    I wish I could have nail weapon, object, book, blocnote, etc ...
    Power assembly of objects and still be able to use the object?
    I do not want a script already all but do help with this project!
    What kind of function I have to use? Gui System?

    Thank you in advance for helping me find my way in this idea there!

    newnightmare-03.png
     
  2. Epictickle

    Epictickle

    Joined:
    Aug 12, 2012
    Posts:
    431
    You will obviously need to use the GUI system lol. Creating an inventory system is no simple task... But I will try to lead you in the right direction...

    You're first going to want some type of grid layout to keep track of your item placement. Next, you'll need a script for keeping track of your items in the inventory. I'd call the base class InventoryItem.

    That honestly is a great place to start. If you can't figure it out from there, you may want to consider brushing up on C# or JS a bit before tackling this beast.
     
  3. Giannigiardinelli

    Giannigiardinelli

    Joined:
    May 8, 2014
    Posts:
    189
    Thank you for the quick response and to please help me!
    I find this game pretty good for the release date not feel this is why I would like to pick some features and inspiration from this kind of game!
    I'll do my research on early you had described here and I'll send you the realization if that does not bother you?
     
  4. Epictickle

    Epictickle

    Joined:
    Aug 12, 2012
    Posts:
    431
    Doesn't bother me at all lol. Let me know what you come up with. I'm about to start an inventory system myself, actually.
     
  5. Tomnnn

    Tomnnn

    Joined:
    May 23, 2013
    Posts:
    4,148
    Inventory systems are cake... as long as you have a good recipe! If you don't plan out most of the functionality ahead of time, fixing / expanding the system later is a nightmare.

    The two main options I can think of would be either to have Rects to represent each object and have an inventory space that they can be in, and then let users drag and drop objects anywhere as long as they don't overlap another object. The other option is to have a grid of rects or positions or even GUI buttons where you will be laying things out on the screen.
     
  6. Giannigiardinelli

    Giannigiardinelli

    Joined:
    May 8, 2014
    Posts:
    189
    Thank you for your reply I will do some research on what you advise me!
    I'll let you run and Epicticle not hesitate EASYROOMMATE your system inventory! It will be two
    I'll let you juice my progress on this project!
    thank you again
     
    Last edited: Dec 5, 2014
  7. Epictickle

    Epictickle

    Joined:
    Aug 12, 2012
    Posts:
    431
    Soyez le bienvenu . Je espère que vous avez un merveilleux voyage avec Unity3d . Je ne peux pas attendre de voir votre système d'inventaire . ( : Aussi, ce est le forum Anglais xP
     
  8. Giannigiardinelli

    Giannigiardinelli

    Joined:
    May 8, 2014
    Posts:
    189
    Hi everyone, I'm back as I move forward in my inventory project!
    Here is screenshot of copy of my games for inventory!
    I followed your SUGGESTED with the use of GUI, Rect, ItemClass, dictionary, etc ...
    For the layout is ok!
    It remains to be descriptions of each object,
    collection of the object that it finds in the correct tab,
    The possibiliter analyze the object or gather to replenish,
    Use the object if clicked,
    Texture buttons

    There is still a lot of things to do I continue the research but if you have any ideas to help me in my research I am at your service!
     

    Attached Files:

    Last edited: Dec 5, 2014
  9. Giannigiardinelli

    Giannigiardinelli

    Joined:
    May 8, 2014
    Posts:
    189
    Here is screenshot of copy of my games for inventory!
     

    Attached Files:

  10. Giannigiardinelli

    Giannigiardinelli

    Joined:
    May 8, 2014
    Posts:
    189
    Here is screenshot of copy of my games for inventory!
     

    Attached Files:

  11. Epictickle

    Epictickle

    Joined:
    Aug 12, 2012
    Posts:
    431
    Looking really good man! Great texture work!
     
  12. Giannigiardinelli

    Giannigiardinelli

    Joined:
    May 8, 2014
    Posts:
    189
    Thank you!
    The hardest and to do!
     
  13. Giannigiardinelli

    Giannigiardinelli

    Joined:
    May 8, 2014
    Posts:
    189
    Hi all!
    Here inventory for now I progress without problem of conaissence!

    Here is a picture that shows lorsqu'ont based on the item or have picked up the key, and the crystal this one goes in the "Object" tab in the dictionary that is!
    For the layout is ok!
    It remains to be descriptions of each object,ok
    collection of the object that it finds in the correct tab,ok
    The possibiliter analyze the object or gather to replenish,
    Use the object if clicked,
    Texture buttons

    There is still a lot of things to do I continue the research but if you have any ideas to help me in my research I am at your service!
     

    Attached Files:

  14. Giannigiardinelli

    Giannigiardinelli

    Joined:
    May 8, 2014
    Posts:
    189
    Here the advance of the inventory!
    Grace I tien to say TSnake which my enormously to help on the translation of java!
    Here the project, the player targets his cursor on the object to collect the object then flickers if it left click the object this finds in the inventory in “children” and gives the order of a posting of texture!
    here an image of my inventory

    For the layout is ok!
    It remains to be descriptions of each object,ok
    collection of the object that it finds in the correct tab,ok
    la collecte de l'objet with texture qu'il trouve dans l'onglet correct, ok
    The possibiliter analyze the object or gather to replenish,
    Use the object if clicked,
    Texture buttons

    There is still a lot of things to do I continue the research but if you have any ideas to help me in my research I am at your service!
     

    Attached Files: