logo hyperPad Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Login

    Dynamic Inventory

    Scheduled Pinned Locked Moved
    Help and Support
    3
    6
    970
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • BD StudiosB
      BD Studios
      last edited by

      I am creating a game that involves a shop system and a dynamic inventory, all my efforts have not succeeded so I thought I would ask the community for some advice, thanks in advance! Current inventory layout: 0_1538761120576_FA095DBF-A647-4B86-9FBF-159525E1931D.png

      Aidan_FireA 1 Reply Last reply Reply Quote 0
      • Aidan_FireA
        Aidan_Fire @BD Studios
        last edited by

        @bd-studios I had a go at making an example that might hopefully help a bit. Link: http://bit.ly/2zU8D8H

        So in your project you would have the game create an array with the name or ID (that you make up) of every item you want to show up in the inventory. Then I think for you instead of setting a label that just says the name of the item you might have it use the ID to get the image of that item.

        1 Reply Last reply Reply Quote 0
        • BD StudiosB
          BD Studios
          last edited by

          Thanks, will have to check it out tomorrow!

          Aidan_FireA 1 Reply Last reply Reply Quote 0
          • KamdroidK
            Kamdroid
            last edited by

            I use the spawned object position as a key to differentiate between them. But as you'll definitely know all the type of items that'll be spawned, Aidan's idea might be better.

            Hopefully we won't need to use such a hacky method once the object referencing update is out.

            1 Reply Last reply Reply Quote 0
            • Aidan_FireA
              Aidan_Fire @BD Studios
              last edited by

              Ohhh sorry I forgot I'm still on the beta, and some of what I did (object referencing) used new beta stuff. You might not even be able to run that project.

              1 Reply Last reply Reply Quote 0
              • BD StudiosB
                BD Studios
                last edited by

                I am on the beta, it works perfectly In your example

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post