dop2000's Recent Forum Activity

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 279 followers

Connect with dop2000

Trophy Case

  • 10-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • x5
    Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • x3
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x14
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

30/44
How to earn trophies