Help again with editor

This forum is currently in read-only mode.
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • Hi, i'm here again <img src="smileys/smiley5.gif" border="0" align="middle" />

    i have again problems with arrays.

    i tried many ways, but i don't know hoe to do a "save"

    in my editor :/

    Help needed!

    here is the .cap : multiupload.nl/6J865YMA82

  • There's a whole bunch of good examples in this thread here:

    scirra.com/forum/help-saving-level-data-in-an-array_topic41705.html

    Basically there is a command to "save array to file" and "load array from file." It's all a matter of how you want to do it UI wise and any differences in how you've made it. For example, before I load my array I have some map properties stored in a hashtable that I load, and I resize the map first too.

    Those examples should get you started.

  • Thanks, but this didn't solved my problem. :/

    i have in ma cap this:

    <img src="http://i49.tinypic.com/mbscvp.png" border="0" />

    but when i click on load, it just destory the objects, but it didn't

    load the objects.

    btw i changed the .cap

    multiupload.nl/3GXFTNEL9R

  • <img src="https://dl.dropbox.com/u/69407974/example.jpg" border="0" />

    Change your load event to this. seemed to work for me.

  • On second look it seems to be loading the array fine, but that doesn't necessarily match up with what was on the screen.

    I think this may be due to your event that sets the array based on the mouse?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yeah, i did it like in the screenshot and it don't works.

    Can you please upload me your array file? i'll be really happy.

    I'm not sure, because the basic sytem of mouse and animation comparing

    with hashes did someone other in a tutorial.- i just remade it.

  • My example worked fine for me, it just seemed to save the arrays slightly off. Let me take a look at it later and see if I can fix the rest.

  • Ok so this one seems to work now.

    If my screenshot didn't work for you it's probably because you forgot to move "For Each Element" on top of the condition that cycles through the array.

    The only other change I made other than the screenshot is that instead of just spawning objects at CurrentX * 32 and CurrentY*32 I made it CurrentX * 32 + 16 and CurrentY * 32 + 16.

    I believe this to be necessary because the sprites are recreated from their center. If you leave the + 16 out then on loading they will appear in a slightly different spot then when you saved them.

    I've saved the working cap to my dropbox... Hope this helps:

    dl.dropbox.com/u/69407974/Saving%20and%20Loading.cap

  • Oh! thanks a lot!

    i'm really happy.

    <img src="smileys/smiley1.gif" border="0" align="middle" />

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