aquadijoib's Forum Posts

  • korbaach,

    Thank you so much for all your examples. But I don't know how to move an item from one chest to another or from the inventory to a chest.

    Thanks again!!!

  • korbaach,

    Does your method also work with 3 dimensional arrays? Because as I said I want to be able to move an object from for example 2,0,0 (From inventory because Z is 0) to 5,0,1 (From the first chest because Z is 1). But I think the Array.IndexOf expression doesn't work with 3 dimensional arrays.

    Thanks!

  • Thank you korbaach,

    I'll try that right now!

    Thanks again

  • SaRaB,

    You could just make a sprite that is invisible and when the player goes over it, On collision with... triggers and the game is saved.

  • SaRaB,

    Ok just forget about what I said <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy"> . The normal save works just fine with multiple layouts. I created a example capx for you and added some comments. In my example you can click on a button to change between 2 levels/layouts and click on the save button to save the game. When you reload the example, your last save state will be loaded.

    Here is the download link: https://drive.google.com/file/d/0B7r2WY ... sp=sharing

    I hope this helps! <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

    EDIT: Tell me if the link works I'm not sure <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • SaRaB,

    Do you want to export your game with NodeWebkit as an .exe file? Because I actually haven't got that much experience with local storage (There was webstorage before and for me that was better ). If you use NodeWebkit (NW.js) I have a better idea I think. Then you would have a textfile that contains the level save. Why does the normal save not work?

  • Anyone?

  • I think you could just store the level number in a local storage when you complete a level. So when the game starts, you can load the layout with that number.

    Hope that helps!

  • Hi,

    I made an inventory for my game and I just tried to make it possible to move objects from one slot in an array to another by clicking on the slots. I tried to let the game put the coordinates of the first click on a slot in a global variable and then do the same with the second one. After the two clicks are done, the game sets two booleans to true (first one set = true, second one set = true). Then when these are true the game sets the value on the index of the second click to the value from the index of the the first click and then deletes the values from the first click. The array is 3 dimensional and one the X axis it stores the item ID, on the Y axis it stores the item count and on the Z axis it can store even more items (every index on the Z axis is the storage of another inventory or chest).

    I can't find a way to get this working and also I think that there could be an easier way. Does anyone have an idea of doing that?

    Thanks!

  • Thanks ahr Ech,

    I tried to rotate all layers that i have to rotate and leave the inventory layer as it is now. It works great.

    Thanks again!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • GrimApp,

    I think you could just copy paste the object over and over again and put them on different layers. If you want to make a path visible you can make the path visible by making the layer visible. Also if you have many of the same object, you can do a For each loop to run a command for each instance of an object.

    Hope this helps!

  • Hi,

    I just created an inventory for my new game and run into a few problems. The inventory has it's own layer and my game rotates the entire Layout, so the player is always upright (Because my game uses gravity for planets and the player is pulled to the planet and the feet are always facing the core of the planet). So I tried many different things to get the layer not to rotate with the layout but it doesn't work really much. The layer always rotates and only at a specific angle it is straight.

    Maybe one of you has an idea?

    Thanks!

  • antares330

    That's exactly what i was thinking of. Look at my example capx maybe it will help you. I think I'm on the right way.

    I'll try more things out. If I find out something new I'll let you know!

  • Can anyone help regarding the multiple inventorys and what I could improve?

    Thanks