0 Favourites

Create inventory contents dynamically

  • 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="http://screenshooter.net/data/uploads/ai/eu/tqbj.jpg" border="0" />

    <img src="http://screenshooter.net/data/uploads/by/fg/kjxv.jpg" 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?

  • Construct 3

    Buy Construct 3

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

    Buy 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)
Similar Topics Posts Views Last Post
Unread hot topic
54 3,395
david7457's avatar
Unread sticky
46 24,506
androidpro's avatar
Unread hot topic
0 Favourites
Pick All / Create Bug
56 1,825
Prominent's avatar