How do I create item in inventory?

0 favourites
  • 4 posts
From the Asset Store
Awardkit
$5 USD
Create custom awards and achievement or use the many templates and create your own.
  • I've started working on the inventory system for my game.

    In the "INVENTORY" layout there are invSlot objects, in which items should appear after creating the object (when we kill the enemy). Well, they will appear, but unfortunately in this way:

    When I turn on the Inventory window, unfortunately they are not there, they are only on the layout where the hero is currently located. Would anyone have an idea to force the created items to be on the Inventory layout?

    Inventory logic

  • the array object is great for things like this. Not sure if you want them to spawn somewhere before you collect them, but once the items are "collected", add them to the array. When you pull up the inventory window, have the objects spawn in the inventory, based on their position in the array.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • If I can't find a solution to the problem, I'm sure I'll look into Array.

    Anyone now why thats happened ?

  • Solution was sending a create items to layer where was inventory :)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)