norab's Forum Posts

  • I already posted a similar request in the expansion section, but on thinking, I guess that what I suggest might be an official feature of the Construct 2. This would be even more consistent.

    So what I suggest is to add a feature "save and load" in addition to the existing one for saving entire game, but for specific objects : arrays, variables, and if possible, objects

    Why do I think this is useful?

    When I see the number of subjects about the storage in the "How do I?..." section (mine included), and aware of the tedious aspect of the set up of a saving system with "localstorage" function, the utility of adding a simple and efficient function seems significant.

    I must say I am surprised that such a function does not exist in the software. All actions are facilitated, ergonomics is really good... it gives me the impression that saving system management has been assigned to a third party developer. There is no mockery or animosity in what I say. I'm really stumped, especially knowing that a system of "save and load" already exists for the entire game.

    I do not want the LocalStorage be removed, since it allows the user to manage backup system point by point. I just suggest that the user can avoid this process if desired.

  • In fact, my problem is that I fail all time I try to put together localstorage, variables and dictionnary/array. Values reset at layout restart.

    All examples I saw until now are talking about a part of how to do a multiple value storage. I really need an example that would shows me how to do it from A to Z.

    Thank you for help and by the way your tutorials are well done.

  • I just realized that my request was poorly expressed now that I have discovered the functions "save and load" in the manual. I did not know this feature because my research on saving system led me to the webstorage, then to the localstorage.

    So my request changes: it would be exactly the same function as adding "save and load" but for specific objects - by name - as arrays, variable etc.

    In fact, I even wonder why it does not already exist in official functions.

    In my dreams I see a variable whose value changes all time an ennemy is destroyed... then I see inserts in the event sheet, simple, basic, open to the most ignorant game creator:

    on layout start > load "higscoreVariable" from "mySaveSlot"

    and

    on player destroyed > save "higscoreVariable" to "mySaveSlot"

    I smile at the mere idea of the size of tutorial about this kind of storage system

  • I am embarrassed. I read, read and reread the lessons dedicated to the LocalStorage or Array/dictionnary and there is nothing to do, it does not work for me. This must be my brain completely allergic to this type of logic.

    I managed to set a coin storage system, with great difficulty and with kindness of AndreasR. Unfortunately I also need to add an highscore system. But just by this idea, my brain is already beginning to burrow deep in my skull.

    Would someone be kind enough to share a capx example that shows how a multiple values storage is set up?

    Please!!!! (crying) Please... My wife left me for my brother, my children do not want to see me, I lost all my money in the last financial crisis, my english is so bad, my club foot hurts me since I can not pay treatment against cancer. Please Help!

  • I understand what you mean but built in plugins doesn't provide what I am looking for. I talk about a plug-in that allow user to jump over the localstorage set up. Actually, the user have to do many things if he wants to store value on hard drive : check if key exists, then, if key exist get the key, then, when you get the key, set the key to, etc, etc... This system needs a developper mind kind to be decently used.

    What I am talking about is a visual way within the layout view that allow user to save values more intuitively with minimum work on event sheet.

  • Hey,

    Is it possible to create a friendly user plug-in, that allow brainless user like me to store multiple value?

    How do i see this stuff : insert "storage system object", edit a list (or an array) visually in a window, go to event sheet, add a condition then an action to "set firstLineOfTheList to (variable)". And that's it! The value is stored and can be loaded by a "load from the saving list" action, for example.

    On the back side, the addon manage all things are needed to do a proper storage system : creating array/dictionnary, setting localstorage, etc.

    Obviously I'm not a programmer, so i don't know if what I say is feasible... But it should be awesome

  • All things I try are big fails... my mind is screwed

    I will study how to store multiple values, then I'll start again from beginning.

    Thank you two very much for help!

  • Thanks for trying to help but it doesn't work :/

    Considering that i want to save more than one variable, I may have to do my saving system in other way. Should I?

  • I would save the highscore with the localstorage, but each time I reboot the game, my variable resets to zero.

    I already have a "coin saving system" that works well, I turned off during the time to set up my system to the score.

    screen

    Any Idea of what am I doing wrong?

  • You can use effects if you just want to color your sprite fonts.

  • Great!

    And as a bonus, I learn to use function object!

    It would work to very well for katzin's tests, because it works for multi layout project...

    Thank you very much AndreasR !

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey AndreasR!

    First, thank you for sharing your knowledge.

    I'm pretty disapointed. I followed your tutorial closely and I would fail something, i guess. When I test my game, my text object return to initial value if I reload my layout. I tried to put a "coin counter system" in your example, and the same thing happend.

    What am I doing wrong? Could you post an example which can show us how to store value and add it to text object on layout loading?

    Thank you for reading!

  • Oh! ok...

    So many tutos are obsolete then :/

    Thank you for this info LittleStain!

  • Hey!

    I actually use the free version of Construct 2 and there is no webstorage item in my "Insert New Object" window - there is only "Local Storage" Item.

    Any idea about this situation?

    Thanks for reading!

  • So obvious, so efficient...

    As beginner, I still don't have the good state of mind

    Thank you RayKi!