How do I load dictionary when I leave layout and return ?

0 favourites
  • 3 posts
From the Asset Store
A complete set of graphical user interface (GUI) to build 2D video games. With wood, nature, & jungle theme
  • Hi guys,

    I've got my dictionary to work just fine. However, when I exit the layout and return to the layout all the values and keys within the dictionary have disappeared/reset.

    What am I missing? I figured that the dictionary was like a global variable that remained consistent when switching layouts etc.

    How do I get dictionary values to remain when going from layout to layout???

    Tagged:

  • Check if you Dictionary is set as Global on the properties bar.

    If you don't want to reload it again from the file when you return to the same layout, add "Progress is not empty" condition to event #2

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks mate.

    I just checked, it was set to global but as you suggested it works to add a global variable to prevent ajax from reloading the dictionary file everytime I reloaded the layout. The Dictionary condition check is empty/not empty didn't work for some reason but yeah, the global variable did so all is well!

    Cheers

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