[Solved]How do I localstorage loop create object

0 favourites
  • 3 posts
From the Asset Store
SynthWave Loop Pack includes 68 seamless loops, founded on 11 original melodies.
  • hi, have some issues, im missing something here, but not sure what, can a keen eye look at this example from below?

    its a basic local storage save when you are in a layout, then when u switch layouts, i dont have any sprites, in there, i just create based on a loop, set their value level based on loopindex, and then for each of them i should be able to fetch the data i saved previously, however it does it for 1 item, but not for others any thoughts?

    Capx localstorage

    click left to set the values for level/hiscore/score/stars/coins for that specific 1st level value, then it increases and so on

    when you right click switches to layout 2 - where it spawns the objects, and tries to update the info based on saved data in layout 1

    need help asap if possible, i could do it if i could be able to get the values "on item get" under the "on created ", but C2 doesn't allow 2 "one time triggers" under each other.

    any different approach similar to what i did? without weird math stuff?

    thanks in advance

    nevermind i solved .........

    Capx Fixed in case someone wants it.

    Capx fixed 2 this calls all the data saved in layout 1 repeating basically the same loop and append the values and texts. hope you guys find it useful, now i can get further and create my "dynamic" unlimited level.

  • You can't generate dynamic names for the Get. Use an array to store your levels then save the whole array AsJSON, and load it the same way. There should be plenty of examples in the forum showing this.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can't generate dynamic names for the Get. Use an array to store your levels then save the whole array AsJSON, and load it the same way. There should be plenty of examples in the forum showing this.

    i just did, however i dont know how dynamic they are ... but all i know is that its working, and all the texts, dont exists before in layout2 but they are created on start of layout. and all i have to do now, is to call the rest of the info the same way thanks for the reply though! much apreciated

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