How do I fix local store variable?

0 favourites
  • 2 posts
From the Asset Store
Easily store, modify, read and manipulate colors with Color Variables!
  • Hi, (construct3)

    i have a question about storing value with "local_store_variable"

    I have a character, when the character collides with a coin (I use is overflaping, coin : global variable) , the coin value will increase by 1

    At the end of 1 level I save it to "local_store_variable"

    ok, so far everything is fine, i did run on each level individually, everything runs properly.

    but, when I play through level 1 and go to level 2 to play, the coin value stored in "local_store_variable" is not correct when I check again.

    I checked again by replaying the same level many times, and the same error occurred

    I still don't know what the problem is.

    the result is:

    Play each level individually : works well, value is right

    consecutive play : wrong operation, wrong save value

    please help me with this problem if you know, thank you

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So each level have it's own stored amount of coins? If you only have 1 slot for all level without storing in array first you will likely overwriting previous one.

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