dop2000's Recent Forum Activity

  • There's likely a mistake in your JSON string (like a missing bracket), that's why it can't be parsed. If you press F12 and open browser console you will see an error message about it.

    I suggest you use any of the online JSON validator tools to fix the syntax.

  • I doubt the data is erased. Most likely it's get overwritten when you re-open the app. You need to post your project file or a screenshot of your events where you read and write to Local storage.

  • AJAX is a standard object in C3. You can add it the same way you add other objects to your project, for example double-click on an empty area in layout view.

    If you don't see AJAX in the list of objects, either you've already added it earlier (and possibly renamed). Or perhaps you have "Simplified interface" enabled in Construct settings, in this case disable this checkbox.

  • It still feels like the same problem to me. I'll try to monitor the memory usage more closely, perhaps it is increased with time, but not very dramatically.

    The editor is much more likely to lag when the project has been open for several hours. But I've seen it happening just 10 minutes after opening.

  • In my case, when I open my project in Chrome, it uses around 3.5GB of memory, and this number doesn't change much with time.

    I tried forcing Chrome to use the dedicated GPU, it made no difference. And as I mentioned, the editor still lags on my gaming PC with a powerful graphics card.

    I also tried Edge browser, closing all search windows, different editor themes, disabling hardware acceleration in Chrome, disabling spell check, disabling auto-fill for addresses, disabling Windows Defender and many other things. Nothing helps.

    Same Large project that's been open for hours (Total blocking time: ~4.3 seconds):

    I posted very similar results in this comment.

  • 1StepCloser Thanks! For me this also happens only in one large project.

    Is the issue intermittent in your case? One minute the editor is very slow, and the next five minutes it may be running perfectly fine?

  • Do you mean you can't find your project file?

    Do you remember how you saved it - to local drive or to cloud? What browser did you use?

    It may be saved in browser storage. Try to open Construct in the same browser and select "Project open from local browser"

  • able to test if a layer is visible directly in an expression

    For some unknown reason Construct doesn't have such boolean conditions.

    You can make a function which checks if a layer is visible, and use it in "Pick by evaluate" expression.

  • You can create a function with all the actions which should run when left mouse button is clicked. And call this function from two events - from "Mouse On Left click" and from "Touch On Tap".

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So I guess now I have to figure out another way to get it to check the result for each of my individual AJAX calls.

    Like I said, you can use AJAX.tag expression inside the "On any error" trigger to see which request has failed.

  • Here you go:

    dropbox.com/s/z89snbjmw8gtfv2/LoadRandomTilemapData.c3p

    You need to create a separate project (Level Builder) where you keep the original tilemaps. Use "Tilemap Download" action to download a json string for each tilemap.

    In your main game create an array with all those json strings. When a new level starts, pick one string at random and load it into the tilemap.

  • Check the console log - sometimes AJAX throws an error there instead of triggering "On Error" event. Also I would probably move "On any error" event out of the loop. It should be a top-level event. You can use AJAX.tag expression to get the tag of the failed request.

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