How to make an item go to the inventory

Not favoritedFavorited Favorited 0 favourites
  • 2 posts
From the Asset Store
Inventory Aid
$4.90 USD
Create grid-based game inventories and items easily.
  • Im making a game where you click on ingredients and they go to an inventory which is on another layout. So i want to make it so that when i click on an item on layout 1, the item goes to layout 2 without the view/player going with it. And i need layout 2 to remember what items it has.

    Does anybody know how to do this? Or is fhis just really impractical?

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well we can’t change things on a different layout than the one we are on. You could make the ingredients global so they transcend layouts. Aka, they won’t get destroyed when you change layouts. But you’d need to clean up the ones you didn’t want to transfer.

    You could just store a list of the ingredients in an array or global variable, then when you move to the other layout you’d look at that the list and create objects from that.

    Simpler still to me could be to make the game all it one layout. Just jump the scroll position between the two areas.

    Anyways, just some ideas.

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