dop2000's Forum Posts

  • I believe in Chrome you need to clear "Hosted app data", not just the cache.

  • Looks like some files in the project are missing or corrupted.

    Check the files mentioned in the console error messages, for example gg_anim-faling-000.png

    If this file exists, try opening/saving it with a program like Paint. Or try restoring it from older backups, or replace it with another file of similar resolution. See if it makes the error message in the console to go away. Do this for other files.

  • Not sure I understand the question.

    If you are spawning the same sprite, then why destroy one and create another? Simply change the animation frame on it.

  • I usually do this by inserting tags into text. For example:

    "Hello, %playername%! You have %coins% gold."

    Then replace these tags before displaying the text:

    Set t to replace(t, "%playername%", Player.name)

    Set t to replace(t, "%coins%", NumberOfCoins)

  • Construct arrays have a specific JSON format, as on your third screenshot. If you can change your JSON string to that format, then you will be able to load it directly into the array with "Load" action.

    Otherwise, if your JSON string is like this - "[1,2,4,10]", you will need to loop thought all these values and insert them into the array one by one. Something like this:

    JSON Parse AJAX.LastData
    JSON For each element
     Array Insert JSON.CurrentValue
    
  • What do you mean? the link works for me, there is a download button on the page.

  • Always check the last few pages in the topic for updated download links.

  • Local Storage data is also saved in browser storage. So if player decides to clear cookies or browsing data, it may be lost.

    With Local Storage you can choose what to save. It may be a single bit of data, or lots of variables, arrays, dictionaries etc.

  • For a browser game you have two options - browser storage (either using System Save/Load, or LocalStorage plugin), or cloud storage. Browser storage may be lost if player clears browsing data, but for many simple games this is not a big issue, and it's much easier to implement.

    System Save action saves everything, so yes, it may restore old level layout. You can try adding NoSave behavior to objects which you don't want to save, but this may not work very well in some games.

    With LocalStorage you can save just the information you need - for example player stats, current level number, amount of gold etc.

    .

    If you want to use cloud storage, take a look at services like Playfab, Firebase etc. You will need to compose a block of data with information you wish to save, and send it to the server.

    .

    By the way, most of С2 manuals and tutorials are still relevant for C3, so don't discard them.

  • If you took my advice with two variables (correct order and clicked order), then once the length of both variables is the same, check if they are equal. If not - this means that the clicked order was wrong.

    If you want to detect mistakes immediately when the first wrong picture is clicked, you need to do something like this:

     Compare variable clickedOrder not equal left(correctOrder,len(clickedOrder))
     // display animation for wrong order
    
  • I've shared this example before:

    dropbox.com/s/srgf9lme08by9wa/JSON-RecursiveRead.c3p

    You can use it to browse through the entire JSON and compare value of each key/index.

  • I usually need to add multiple children to one parent. Sometime like 20 different objects. So I can see how your suggestion may be useful, but I would also prefer to keep the current method.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Double-click the sprite to open it in Animation Editor. There click the collision polygon icon on the left toolbar, or press Shift+P

  • My understanding is that to display a rewarded ad you are required to ask user if they would like to see it. Interstitial rewarded ads can be shown automatically without a prompt during natural app transitions.

    Edit: Apparently, you still need to give user an option to opt-out:

    support.google.com/admob/answer/9884467

    With interstitial ad you only get paid if people click on it.

    With rewarded and interstitial rewarded you get a small amount of money when the ad is played to the end.