dop2000's Forum Posts

  • + System: For "n" from 0 to List.ItemCount-1

    -> Text: Append List.ItemTextAt(loopindex) & newline

  • I see I was wrong, sorry. It may be a bug, you can report it:

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

  • We probably want the whole hierarchy to be at 20% opacity, not individual parts.

    This may not be possible, I guess. I will be happy if each object was at 20% opacity. It will still be very useful for hierarchies where objects don't overlap. Or for quick fading in/out effects, for example a complex dialogue window.

  • Yeah, syncing visibility, opacity and z-order would be great additions to the scene graph.

  • You need to remove / character from the folder name. See Ashley's comment here:

    github.com/Scirra/Construct-3-bugs/issues/6236

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yeah, adding a second light source may be impossible.

    Here is a completely different approach, based on the official template:

    howtoconstructdemos.com/improved-stealth-game-template-how-to-make-a-visible-cone-of-view

  • Without seeing other events it's difficult to tell. I suspect the events from your screenshot are running on every tick, restarting the fade again and again. Put them inside the event where you change the state of "hide" variable.

  • The last way is to manually set the x and y velocities to max(currentvelocity,maxvelocity) every tick

    I think you meant min(currentvelocity,maxvelocity)

  • It's just a very common thing beginners do in Construct - they add a new event for everything. Then they discover these events affect all instances and not just the one they want, or that events are firing on every tick instead of just once. People try to fix this by creating complex "state machines" and by adding "trigger once" conditions in every event. And often end up with an entangled and still buggy code.

    When you spawn a new instance, it's better to perform all initial actions with it in the same event. And avoid using "trigger once" condition, especially with multiple object instances.

  • This is a 2-dimentional array. The first column (at Y=0) contains scores, the second column (Y=1) contains names. After sorting, Array.At(0,0) will contain the highest score. Array.At(0,1) will contain the name of the person who made that score.

    Array.At(1,0) - second best score, Array.At(1,1) - its name

    Array.At(2,0) - third best score, Array.At(2,1) - its name

    And you should display the scores in the same event where you parse them (add another sub-event in event #3.

  • Why "ghost racer"?? I meant this example:

    And you can't load your data directly into the C3 array. You need to load (parse) it into JSON object first. Then do something like this:

  • Load into a JSON object. Then use "JSON For each key" loop and insert every value into an empty array. Can't tell you more details because I don't know the format of your JSON data.

    There is an example project in C3 showing how to work with JSON, check it out.

  • You need to open the project in an old version of C3 - see which version it was saved with in the c3proj file. For example, if "savedWithRelease":25102, then open this url:

    https://editor.construct.net/r251
    

    Remove the VS plugin from the project and save. Then you should be able to open the project with the latest C3 release.

  • Yeah, you can't use "Pick Nth instance" in a "For each" loop, because it processes one instance at a time. You need to compare loopindex instead.

    For each playerfamily order by score
    ..Compare loopindex=0 : set placement to 1
    ..Compare loopindex=1 : set placement to 2
    ..Compare loopindex=2 : set placement to 3
    

    Or just do this:

    For each playerfamily order by score: set placement to (loopindex+1)