John Cutter's Recent Forum Activity

  • You do not have permission to view this post

  • Thanks, dop2000

    My code has an extra event and it actually makes your first example work. I'm not sure why...

    + System: For each CardFamily order by CardFamily.ZIndex ascending

    ----+ System: For each Card

    --------+ Card: Is overlapping CardFamily

    --------+ System: Card.ZIndex>CardFamily.ZIndex

    ---------> CardFamily: Set animation frame to 1

    Here's my code now and it seems to be working perfectly. Do you see any issues?

  • I wrote a level editor that allows me to load and save .json levels using a FileChooser object.

    Stupidly, I assumed I would be able to load these files (sans FileChooser) in the game, but I forgot that Construct 3 is browser-based and this is not allowed.

    My game will have ~200 levels and during development I will be tweaking/changing them frequently. Should I just keep all the levels in the Files folder in Construct 3, and then re-import them every time I change something?

    What is the best practice for this?

  • Hello dop2000,

    First off, I just want to say that your knowledge of Construct 3 is incredible! I’m always learning from your posts and trying to understand even a fraction of the things you do.

    That said, I’m still a bit confused about the picking suggestion above. I’ve built several fairly complex levels, and my simulation code plays through them 1,000 times (in less than 2 seconds!). I tried implementing your suggestion as well as the approach shown in my screenshot, but I’m getting the same results either way.

    I absolutely trust your expertise (after all, you came up with this approach in the first place! Even the best AI models couldn’t figure it out when I tried asking them), so I'm implementing your suggestion I'm just trying to understand the whole fam_cards vs spr_card stuff.

    Speaking of AI, I asked ChatGPT’s GPT-4o model about this, and here’s what it said:

    In a family with only one object type (in your case, spr_card is the only member of fam_cards), using “Pick spr_card by …” and “Pick fam_cards by …” will behave the same way in practice. That’s because there’s effectively no difference between the single sprite and its family—Construct will end up filtering the same set of instances regardless of which name you use.

    Where it does make a difference is if there were multiple object types in fam_cards. In that case, picking via the family name (fam_cards) would include all objects in the family, whereas picking by a specific member (spr_card) would only apply conditions to that one type. But if the family consists of just a single sprite, they are functionally identical.

    In short: If there’s only one member in the family, both picking methods yield the same result. Using spr_card instead of fam_cards isn’t wrong—it’s just more common to use “Pick fam_cards…” when filtering the entire family.

    Does this align with your understanding? Or is there another nuance I might be missing?

    Thanks again for all your help—I really appreciate your time and expertise!

  • I've been using the code in my original post for several days and it seems to work perfectly with any overlapping cards I've tried.

    Out of curiosity I just tried your suggestion. Is this the correct implementation?

    This seems to do exactly the same thing. It's a few events shorter so I'll stick with it unless I run into an issue.

    Thanks, dop2000!

  • You should try contacting the author of the theme.

    > but got a warning that any file saved with DARCSS will no longer load if I uninstall the theme...

    What??? Is this true? How can an editor theme prevent projects from loading?

    Yeah, I tried reaching out to the author a few weeks ago but he hasn't gotten back to me.

    Regarding the warning, it's actually a more generic warning in the Addon manager. When I tried to uninstall DARCSS I got this prompt:

    "If you uninstall an addon, you will no longer be able to open projects that use it. Are you sure you want to uninstall the addon "DARCSS"?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm really enjoying the DARCSS theme I purchased from the store, but today I was working on some javascript code and the search feature is basically unusable. The background is dark and the highlighted search results are a dark dark blue... practically invisible.

    I think I found the appropriate color value in the CSS file. Can I change this and then re-install the theme? (I changed c3addon to zip, found the css file and changed the color, then renamed the file.)

    I tried it and got a bunch of errors. So then I considered uninstalling DARCSS so I could re-install it, but got a warning that any file saved with DARCSS will no longer load if I uninstall the theme...

  • dop2000

    I'm testing edge cases, but this code has worked on everything I've tried so far -- including your two examples!

    Whew! I REAAAAALLY didn't want to have to mess with tons of different layers.

  • dop2000

    I just noticed an issue with the code you provided and I'm not sure how to fix it.

    It works perfectly when I have one card being covered by another card, or if one card is covering two cards. Unfortunately, it doesn't work when I have two cards covering one card. Like this:

    In this example, the highlighted card shows that it is being covered by the middle King, but not the one to the right.

  • I know there are browser restrictions, but is there any way to save over an existing file?

    I'm wrapping up work on my level editor and if I load "Level_42", fix a few things, and then click "Save" the file dialog shows:

    "Level_42(01).json"

    I can remove the "01" before saving, but there's potential for user error. Any way around this?

  • After maybe a dozen years with Construct, I'm starting on my first large Construct 3 game. I've always used the default theme for my little prototypes, but I recently switched to DARCSS and it almost feels like I'm using a new development tool!

    This dark, more modern, theme makes me feel more like a real game developer. (Which is a very strange comment from a 63 year old who has been a professional game designer since he graduated from College.)

    This is a huge exaggeration, but the default theme almost makes me feel like I'm using something like Scratch, where DARCSS makes me feel like I'm working in Unity or some other more professional tool. It's been two weeks and the feeling I get when using it still hasn't worn off!

    NOTE: To be fair, DARCSS has a few issues. My biggest hassle is that windowed features, like the sprite editor, are nearly the same color as the background. On the plus side, it's more compact so I can see more of my code without having to scroll!

  • Thanks ROJOhound, I think I'm starting to get it.

    Is there a difference between For Each mySprite and Pick All mySprite? (I know the latter allows me to check PickedCount...)