LonelyPear's Forum Posts

  • 8 posts
  • Lol.. Honestly I only know halfway what im doing as you can see.

    So here i was trying to have the webstorage reset so i can test it multiple times. I changed it to remove item but that didn't achieve what I thought it would. I figured out what i should have been doing was clearing the array >.< It works though thank you!

    Here i was attempting to save the array as a dictionary I dont know much about json or how to use it so im sure its all wrong. I think i need to use the dictionary for the airconsole plugin but I really have no clue

    This is the plugin for saving persistent data but i couldnt find any tutorials on how to save and load using it. So if anyone has any experience with airconsole help would be greatly appreciated :)

  • The translation is making this even harder to understand im so sorry! Thank you for trying to help me though I think some words are being translated wrong. So here is an example of my level selection screen.

    I cant get localstorage to store the array data not sure what im doing wrong there.

    Also I have included the airconsole plugin. I would like to save the array to the airconsole persistent servers. if you cant help with that I understand.

    https://www.dropbox.com/s/l95fng0azyvc67k/Example.c3p?dl=0

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Okay thanks ill try and put together an example. The reason I think I need to use dictionary is because im trying to save persistant data to airconsole servers. So i have my Levels array which works perfect for displaying what level is unlocked and how many stars a player got. However this is what the airconsole plugin says

    (AIRCONSOLE).PERSISTENTDATA

    Description: Returns a JSON string representation of the persistent data loaded by the last requestPersistentData. Use C2Dictionary.Load to grab/traverse the data

    Loaded by: onPersistentDataLoaded

    Can be used after: OnPersistentDataLoaded

    it says c2 but the plugin works on c3 the documentation hasnt been updated i believe.

  • Would it work a key for every level?

    So 10 levels

    Key level1=0 then a player wins with all three stars I set to

    Key level1=4?

    Not sure I'm understanding correctly

  • Thanks. I'll work on this later and see if I can figure it out.

    So can the dictionary be used to control level selection screen? I'm using the array 1=unlocked 2=1 star 3=2stars 4=3stars. So on level complete if player gets all 3 stars it sets the value at that level to 4.

    I wrote the level select screen a long time ago and it worked with webstorage but I honestly can't remember why I did what I did so I'd like to redo it.

  • How do i save Array data to dictionary?

    I have this array I need to save to either dictionary or local storage and then I need it to spit out json

    that a plugin(airconsole) can read and store data on their servers. Im not sure if i explained that correctly?

    Is this right?

  • Okay so I just want it to cycle through the rows as a start so I can get it working. This is what I did.

    I couldn't figure out how to use lock.var not sure where to find it.

    Levelselect=Levelhand

    Level select is my instance variable from 1-5

    Everything seems to work except it wont advance from box 1 to 2 etc. It snaps to the first box so that part works.

    Okay I messed up i wasn't using the right sprite...for my snap to box command. This worked thanks!!

  • Im trying to have my level select screen navigable by controller. Ive been trying different things and so far not much is working properly. Now im onto using the dictionary not sure if im even doing it right? Should i use an array or just global variables? This should be so simple its driving me crazy.

    Trying to have the hand snap onto each level select when i press the right arrow up top(to simulate controller)The hand will snap to a box successfully but wont advance to the next box.

  • You do not have permission to view this post

  • You do not have permission to view this post

  • 8 posts