Create inventory contents dynamically

0 favourites
  • 1 posts
From the Asset Store
Fully commented source code/event sheet & sprites to create a space shooter game
  • I've got stucked with my project. I want to create inventory, where player would be able to pick items, and their graphic representations will be shown in inventory.

    I created placeholders for items, they are all the same sprite (inventory_slot) but with different names (slot1, slot2 etc.). I've got fucntion that selects slot to put item and then puts it into that slot. Problem shows when I try to load image from given url - it loads image to all instances of inventory_slot. Here's a screen how it looks:

    <img src="" border="0" />

    <img src="" border="0" />

    Can I load image to one instance of sprite only? If not, maybe there is another way to create items in inventory dynamically?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)