dop2000's Recent Forum Activity

  • "{""key"":" & var & "}"

    Although properly formatting JSON string with all those double and triple quotation marks is pretty difficult. Here is how I prefer to do it:

    construct.net/en/forum/construct-3/how-do-i-8/ajax-data-syntax-error-167158

  • Two options. First, you can use a family Balls:

    For each Balls : 
    .. Create Ball at (Balls.X, Balls.Y)
    .. Ball Set angle to ....
    

    The second option is to create a new ball with a function:

    For each Ball : 
    .. Call function NewBall(Ball.x, Ball.y)
    
    On Function NewBall (parameters: x, y)
    .. Create Ball at (x, y)
    .. Ball Set angle to ....
    
  • If you want to do this with scripting, you should probably post in Scripting subforum:

    construct.net/en/forum/construct-3/scripting-51

    With events you can receive the same response with AJAX and parse it into JSON object.

    See the official example.

    Events are executed from top to bottom, so the first event requests fullscreen, and then the second event cancels it immediately.

    Use sub-events with Else condition. And you don't need the variable, you can check if the game is in fullscreen using Browser condition.

    On Tap
    ..Browser Is Fullscreen : Cancel fullscreen
    ..Else : Request fullscreen
    
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I sometimes need to work on a huge project (over 8GB). Most of it are videos, but there are also tons of large images. Opening the project takes over a minute, and rendering spritesheets for the first preview about two minutes. But after that it works and runs fine, and the preview starts instantly (unless I change the graphics, then it needs to re-generate the spritesheets again). My specs: RYZEN 9 4900H/RTX2060, 24GB RAM.

    You don't need two 16GB video cards, what you need is optimize the layouts where memory usage is excessive.

  • Looks like the response from Firebase comes in JSON format. You can load (parse) it into JSON object, then loop through all scores in JSON and copy them into an array. Then sort the array and display sorted values on the leaderboard.

  • Must be the same issue as in this bug report:

    github.com/Scirra/Construct-bugs/issues/5155

    Ashley says it's by design, but it feels like a bug to me.

  • I don't understand your question to be honest. Do you have a problem with running the game in preview? Or does the game crash when you run the exported app (APK) on your phone?

    If the APK crashes, you need to get the Logcat log! Not the Chrome log from the preview.

  • You mean when you install the game on Android phone and click its icon - it launches and immediately closes (crashes)?

    You need to collect logcat logs.

  • You can right-click the family, click "Select all in project" and then turn the effect off. This will update all family instances on all layouts.

  • Hmm. I'm confused then. The only place that I can see to choose a scaling mode is under "Full Screen Mode".

    Yeah, it's a slightly confusing name. Should be called "Scaling mode".

    Most common mode is "Letterbox" - it's sufficient for 90% projects. "Scale outer" requires a bit more work, you need to make sure that the app works correctly on ultra-wide and ultra-tall screens, that the backgrounds are big enough etc.

  • You can use LineOfSight behavior (or multiple LineOfSight behaviors with different settings) on the TesterHelp sprites to check if the player is in LOS, or if there are other enemies nearby. It also allows to cast rays, for example if you need to find the exact position of an obstacle between that sprite and the player.

    I also suggest re-using these TesterHelper sprites, instead of constantly creating and destroying them. Keep them somewhere off-screen when they are not needed, and move to the random point when required.

    This whole task is pretty advanced. I recommend studying a few tutorials and built-in examples in C3 on how to use LOS behavior and raycasting. Try to make a very dumb AI first, then improve it bit by bit.

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 257 followers

Connect with dop2000

Trophy Case

  • 8-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
  • x13
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

28/44
How to earn trophies