Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

How do I code a Cassette Tape Inventory?

Discussion in 'Scripting' started by GameDevDavisEDon, Jun 2, 2020.

  1. GameDevDavisEDon

    GameDevDavisEDon

    Joined:
    Jun 2, 2020
    Posts:
    6
    I am working on a game with cassette tape mechanics. My question is how do you set up the inventory system in this manner? From pic? With C# Coding.

    Basically it's like the Apple Brand iPod player.

    Inputs:

    I = toggle Inventory
    Left and Right Arrow keys = Select tape
    Backspace = back
    Esc = Exit inventory
    Use the mouse and first mouse button to select the actions.

    Note: I know their base to be a list of slots with a loop function?
     

    Attached Files:

  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,971
    That type of thing is known as a carousel presentation, and otherwise it's just an inventory system underneath it.

    I recommend working through some youtube tutorials first to get a good idea of what needs to go where.
     
    GameDevDavisEDon likes this.
  3. GameDevDavisEDon

    GameDevDavisEDon

    Joined:
    Jun 2, 2020
    Posts:
    6
    Yes, that's what I needed! But I am not finished yet... I still need to see if it works for making a tape inventory. :D
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,971
    Correction: your job as the engineer is to make it work... we're all counting on you! :)
     
  5. GameDevDavisEDon

    GameDevDavisEDon

    Joined:
    Jun 2, 2020
    Posts:
    6
    Thank you! I will keep that in mind, that I am an engineer! I have to make it work anyway... So far I got it working. Now I need to know how to instantiate the tape to the inventory system. I will figure this on my own. I need to get much experience as I can get. :D
     
  6. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,971
    This sort of attitude will get you far. I love it... makes my entire weekend seeing your reply.

    Don't hesitate to hit us back here if you have any Q.
     
  7. GameDevDavisEDon

    GameDevDavisEDon

    Joined:
    Jun 2, 2020
    Posts:
    6
    A lot of this Inventory stuff is working well... But know I how do I make a tape pickup that adds a new slot to my tape inventory. I used the PlackThornProd Inventory system...

    But I need lines of code to add the slot. Right now, it's only adding the button and images? I want the Tape Inventory to be empty with 0 slots and add not slot when I grab the tape? Any Idea?
     
  8. GameDevDavisEDon

    GameDevDavisEDon

    Joined:
    Jun 2, 2020
    Posts:
    6
    So I made a Cassette Tape Inventory. I want to have the mouse hover over the tape icon. And I believe set the strings to anything I want. Like the title of the tape and the description of the tape. How do I do that? I know I need a special button that needs to hover on the red circle to change both text boxes. [[Update:]]Oh! Oh! I forgot I want to use this on TMPro and not regular text. How do I do that? TapeStuffSG_03.1.png