Chadori's Forum Posts

  • I tried this and have run into a problem. I have it set to:

    Every X Seconds - Save Game "mysave"

    Start of layout - Load game "mysave"

    which works fine if I close and re open the game. But then if I do it a 2nd time it doesn't load.

    I think you misunderstood the use of Save() :

    Save() is not something you use to save changes what the player did on your game ex, for every 2 seconds since it will be too hard for it saves almost everything in your game.

    In your situation, if you are saving for ex. money, coins or anything that is a value. You should use the localstorage. Please refer to the table above.

    -Edit

    Save() is for example, for RPG- Games that you save your gameplay state from where you left off. Since it saves almost everything, then it would be too inconvenient to add a time interval lesser than 30 seconds for (every X seconds) to save the gamestate. Besides, while saving it will pause momentarily depending on the write speed of the Device.

  • JesseJames11 - The Save Action saves almost all : Arrays, Local/Global/Instance Variables, Sprite Positions, Size and Etc. , Dictionaries,

    Except:

    The LocalStorage(previously called WebStorage) is not saved since it already persists even when closed, so this is an independent storage.

    -Input state (i.e. mouse position, or whether the player was holding keys or touches)

    • AJAX requests
    • WebSocket connections
    • The XML object
    • User Media video or audio feeds
    • Facebook login
    • (WebStorage/LocalStorage!!!! state)
    • CocoonJS/Windows 8 state
    • Any in-app purchases on any platform
    • Anything with the 'No Save' behavior)

    More information:

    https://www.scirra.com/tutorials/526/ho ... -savegames

  • JesseJames11 - What are you trying to accomplish? If you are trying to save a game state and later loaded by the player then you can use the system action (Save)

    System --> Save --> Slot("Save Name")

    If you are trying to save values like coins then you can use the localstorage. Arrays works like variables but comes with three values per row (X, Y, Z) unlike variables which only has X per variable, and arrays are not saved on close of app. But array values can be downloaded to the LocalStorage so that it can be saved even when app is closed and loaded afterwards whenever you want to, like "on game start up" or "start of layout".

    In conclusion,

    If you want to save game state:

    System --> Save --> Slot("Save Name")

    If you want to save game values:

    Storage:-------Persist on close of app:---Can be set on LocalStorage:

    Local Storage:----------Yes-------------------------(Yours truly)

    Dictionary:--------------No----------------------------Yes

    Array:---------------------No----------------------------Yes

    Local/Global/

    Instance Variables:--No----------------------------Yes

  • luckyrawatlucky - I don't understand the error log. Can you give more information about how you built or exported your game. Did you use Admob-cranberryplugin's for admob?

  • 6ft - You still need to have a webhost. A domain is only an address for your site but you still need a webhost for storage(webserver) and functionality.

  • & - You really should request one from , After all, they will have to give those to you two since you bought the license. I agree , Scirra should really buy the IAP and Admob plugins from cranberrygame or atleast a license subscription of use to fix the issues.

  • AndreasR - I found the problem. The problem was the version number, I changed the Version Number from v1.0.1.1 to 1.0.1 .

    But I have another problem. When I compiled it, it said failed because the compiling took so long? Do you know how to fix this?

    Thanks in advance XD.

  • KaMiZoTo - Nice! I like the new graphics of THERE IS NO GAME XD

  • agent2557 - If you bought your license, You should also receive your license badge. But currently I don't see it. If you can't have cranberry's plugin, You can try this but this method only works for some people. https://www.scirra.com/tutorials/4848/h ... osswalkxdk

  • AndreasR - Hey andy, I tried compiling from Cocoon.IO but I always receive an error. I don't understand the log it gave me, maybe you can clear it out for me:

    Thanks.

    Platform android error

    Fetching plugin "com.ludei.defaultres.ios@1.1.1" via npm

    Error: Failed to fetch plugin com.ludei.defaultres.iosleg@1.1.1 via registry.

    Probably this is either a connection problem, or plugin spec is incorrect.

    Check your connection and plugin name/version/URL.

    Error: Registry returned 404 for GET on https://registry.npmjs.org/com.ludei.defaultres.ios

  • luckyrawatlucky - It is because you can't use the emulator to test other cordova plugins like Admob or IAP. You need to export it to your device but remember to enable "Test Mode".

  • How do I check if the Game App is bought from GooglePlay?

    Just like IAP, It has a feature called "On Restore Purchases Succeeded" . Is it possible to check the GooglePlay Account of user if the App is purchased or not?

    Thanks in advance XD

  • agent2557 I am sorry but what you are asking is an act of piracy and I think cranberrygame would feel disappointed if we share it. Besides, he did offer a reasonable price of $7.59 and 96+ (currently 85 plugins).

  • Thanks AndreasR . It seems that it is almost the same with the events used to build on IntelXDK. If I use the events I used that worked on IntelXDK, will it also work on Cocoon or do I need to remove or add some events?

  • Try Construct 3

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

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

    that's the next part on my list

    I'll keep you posted!

    Cool