dop2000's Forum Posts

  • Strangely, I didn't have any freezes in the past two weeks. I've been using C3 on a different machine where I didn't touch the performance settings in Chrome. Yet the same project that used to lag and freeze terribly now works fine!

    I'm guessing some memory leak issue was fixed in the latest Chrome release.

  • I heard that windows games work on the Deck. Have you tried win32 and win64 exports?

  • I would use Spline, it's a popular C2 addon by Rex ported for C3. It works like MoveTo only for curves, allows to adjust speed and curve tension.

  • Here is another example:

    howtoconstructdemos.com/starfish

  • It's exactly the same as in my previous message

  • Or instead of destroying you can make the object invisible and disable its collision. After 4 seconds - make visible again and enable collisions.

  • The easiest way is to use a layer with red background color. Place it above other layers, untick "transparent" checkbox and add an effect like Multiply or Overlay or Burn - whatever you like best.

    You can then turn this layer visibility on/off using a Timer or "Every X seconds" event.

    Every 1 second
    AlarmTriggered=true
    ..Layer "Alarm" is visible : Set layer "Alarm" invisible
    ..Else : Set layer "Alarm" visible
    
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think it's only for external programs like explorer, but you should test to be sure.

  • By default there is a single instance of JSON object. So if you parse a new message in it, the old one will be overwritten.

    You can create new instances of JSON (just like you create new sprite instances). But be careful to always pick the correct instance of JSON in other events and functions. You can distinguish them by instance variable for example.

  • Glad it works! You should probably use double quotes in case the path on user's computer has spaces. For example "My documents" instead of "Documents".

  • If the function doesn't contain any "Wait" actions, it will return the value immediately. If there are waits, you need to set the function as "asynchronous". Although I never tried this with functions which return values.

  • You can use this addon to move a sprite along a curved line:

    construct.net/en/make-games/addons/198/spline-movement-c3-runtime/versions

  • Add a temporary Text object to the layout, print NWjs.UserFolder to it. See what path it returns. Maybe you don't need to append "\Documents\DinoSystem" to it.

    Then try executing explorer.exe from CMD with that path.

  • That was just an example.

    Anyway, for exporting to CSV you need to compose a multi-line string where each question ends with a newline. There should be a comma between each value in the line.

    Example:

    question1,No,timestamp
    question2,Did Not Understand Right to....,timestamp
    question3,Yes,timestamp
    
  • I would move all logic to instance variables on the Button sprite. (a single button for Yes and No answers)

    Configure these variables on each button for all questions.

    So when a button is clicked, you can compare its variables and know if the answer was correct or not, what to add to the CSV file and what to do next. This way you will only need one handling event for all questions in the quiz.