dop2000's Recent Forum Activity

  • Most modern games create save files in the default Documents folder, for example \Documents\StudioName\GameName\save01.dat

    How do I find the path to this folder with NWJS?

    NWJS.UserFolder returns the path to my user folder, which is "C:\Users\dop2000\"

    The documents folder is there, but depending on Windows version it may be named "Documents" or "My Documents" or may be even be in some other language. So how do I locate it?

    And what is the best location for game saves on Mac?

    Tagged:

  • I want to understand, why a subevent doesn't work with "while" loop?

    Your event #1 on the second screenshot runs on every tick. There is only one condition (variable<10) which is always true. As a result this loop becomes infinite and the game freezes or crashes.

    In the first screenshot there are two conditions in the event. The first condition is true, but "every 0.5s" condition is false most of the time, that's why the loop doesn't freeze and the code works.

    But I would say both examples are wrong.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you want to add 1 to the variable every 0.5s until it reaches 10, you don't need "While" condition at all. Change your code like this:

    Every 0.5s
    Variable<10 : Variable add 1
    

    While is used for loops which run in one tick. For example "While Car not overlapping Wall, move Car 1px"

  • What "Kalman Filter demo"?

  • You need to set collision polygons in the sprites correctly. Then you can check if a tile is overlapping the sprite.

    Check out this demo, it's very similar, except it uses another tilemap to check for collisions:

    howtoconstructdemos.com/auto-fill-collision-map-for-top-down-games

  • It does, you need to set up a web app in the developer console.

    You'll likely have to upload the game to the actual webserver to test, it won't work in preview because of CORS restrictions.

  • I think the group gets activated after 3 seconds. But "On start of layout" event in this group is not triggered, because at this time the layout is already running.

    I suggest you use Timer behavior instead of "Time>3 second + Trigger once" conditions.

  • (the hour hand should rotate clockwise at 1/12 the rotation of the minute hand)

    So the hour hand should only move forward every 5 minutes? I didn't know that!

  • This may not be the best solution, but here is my attempt:

    dropbox.com/scl/fi/xp2ys516ur03t1fvmouzr/clock3.c3p

  • You need to register an account and set up your app on GA website first.

    Add GA plugin to your project and configure the Game Key and Secret Key for Android in plugin properties. You can find the values of these keys in the app dashboard on the website under Settings.

    Add "GA Initialize SDK" action to your loader or first layout.

    This should be enough to track basic events, like app launches, playtime etc. If you need to track other things (for example level progression), you can do this too, just add these actions to your game events. For example:

    When player starts a new level - GA Add Progression Event Start "Level1"

    When player finished the level - GA Add Progression Event Complete "Level1"

    Here is the official documentation, but it may be outdated:

    gameanalytics.com/docs/s/topic/0TO6N000000XZEyWAO/construct-sdk

    You can check if the integration works by clicking Realtime -> Live feed in the dashboard, the messages there usually appear within minutes. Note that you might need to wait for several hours or even days before the data appears in other screens.

  • When I open the debug I see the variable Keysvar = 1 Nothing different from a normal variable that could be...

    Because it is a normal variable. All integer numbers are made of bits and setbit/getbit expressions allow you to change individual bits in a number. Read about the binary system if you want to better understand how they work, for example:

    mathsisfun.com/binary-number-system.html

dop2000's avatar

dop2000

Online Now

Member since 26 May, 2016
Last online 5 Feb, 2025

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