How do I keep all of /sprite/objects

  • Hi,

    I am making escpae games so How do I keep all of /sprite/objects working between all layout ?

    for example one object take it from 1st layout that object going to inventory and then used in 3rd layout so how keep the object . see the link

    prntscr.com/gle0xc

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I don't think you can. You need to store your inventory (items, quantity) in some array or dictionary. And then when you change layouts, you re-build your inventory using that data.

    To automate and optimize this task you can create a function that fills the inventory with sprites using the data from the array/dictionary. And call this function from all your layouts.

    Also, move the inventory area of the screen to a separate layer and set it as Global, so you don't have to duplicate it on other layouts.

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