dop2000's Forum Posts

  • What does var=0?1:0 mean?

    Set var to (var=0?1:0) means "if var=0, set it to 1, otherwise set it to 0"

    en.wikipedia.org/wiki/Ternary_conditional_operator

  • Only Zoom Out works now (CameraZoom=1 event). Zoom In doesn't work.

    That's because CameraZoom can never be 0. Check your logic - first you're adding 1 to CameraZoom, then comparing it to 0. Should be the other way around.

    If you want to toggle a variable between 0 and 1, there are several easier ways to do this:

    Set var to (var=0)
    Set var to (var=0?1:0)
    Set var to (var+1)%2
    

    Or you can use a boolean variable - it has a toggle action.

    how should I credit you in my game (should I ever publish it) for helping me? Your real name or dop2000?

    This isn't necessary, but you can put dop2000 :)

  • On your second screenshot, the last event (Is tween playing) is nested under the parent event (On key pressed). It needs to be a separate, top-level event.

  • when I set gamepad to 0 and the app on 1

    What does it mean? Which app?

    Does it work correctly here?

    hardwaretester.com/gamepad

  • I don't understand why do you use loopindex in arr_crew.At(..., loopindex) expressions. Loopindex will correspond to the nested "While" loop, not the parent "Repeat" loop.

    By the way, instead of the safety_counter you can just use loopindex<200 condition.

    .

    This task would be a lot easier if you use JSON instead of the firstnames array.

    {
     "elves": {
     "male": ["Aelar", "Theren", "Faelar"],
     "female": ["Lia", "Shalana", "Aeris"]
     },
     "dwarves": {
     "male": ["Borin", "Thrain", "Karg"],
     "female": ["Dis", "Hilda", "Brynja"]
     }
    }
    

    To find a random name for any species/gender:

    JSON.Get("elves.female." & int(random(JSON.ArraySize("elves.female"))))

  • After pressing "Z" the screen goes blank. I'm guessing the layout zoomed too quickly for too long?

    No, the screen goes blank because the tween value is always zero. Your mistake is that you are using the wrong action - you need Tween value action, not Tween two properties.

  • Yes, you can use a special object with Tween, or just add Tween behavior to an existing object - say, to a background sprite.

    I tried it and it didn't work for me though.

    Can you post a screenshot of your code?

    Check that the "scale rate" property on layers is set to 100%

  • On start of layout: Set layout scale to 10
    
    On every tick: Set layout scale to lerp(layoutScale, 1, dt*4)
    

    It’s not a great method, because lerp will keep adjusting the layout scale very close to 1 for a long time. I’d use the Tween behavior instead — run a value tween and update the scale with this event:

    Object tween "zoom" playing: Set layout scale to Object.Tween.value("zoom")
    
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The fact that everyone will use AI then if you don't will be behind is the same like saying everyone is stealing/killing/committing violence, if you are not doing it you will be behind.

    No, you're twisting the argument. We want to use AI for good. What you're saying is "Criminals use knives to rob and kill people, therefore we must not use knives for hunting or cooking."

  • and it reads like you are fine with it and actively push for exactly this thing to happen

    I'm not fine with it, but there's nothing we can do to stop it. Accepting AI and using it in our work is not "giving in" - it's actually a way to stay competitive for a bit longer, before most of our jobs inevitably become redundant.

  • but now it seems like you are fine with vibe coding the entire game.

    Where did you even get that from? I never said that and of course I'm against it. I said I need an AI assistant — something that helps me work faster, write cleaner code, catch more bugs.

    Just because some people use AI to generate low-effort slop doesn't mean we should avoid using it responsibly to make better games.

  • envoys Wow, this is really cool! How do you set up a system like that? Do you have a link to a manual or a tutorial?

    Debugging. As of late February 2026, two top-end models (Opus 4.6 and Gemini 3.1 Pro) were able to understand my project's logic and find errors in linked sheets of 500-1000 events 8 times out of 10.

    Amazing! Do you need to explain every specific bug, or does it analyze the code on its own and look for potential issues?

    Today I saw a video on Twitter of a large 3D game made based on a prompt, and a program that controls agents working on the project. Too much money has been invested in the tsunami heading our way.

    Yep.. In a year or two we will be flooded with thousands of AI-generated games. Just like the internet is already flooded with AI-generated music and other content. I don’t understand how people don’t see this coming.

  • If you are talking about the fog of war effect, which is gradually removed as you explore the map, then I would suggest using a tilemap.

    If you just want to permanently cover some areas on the layout, you can use static sprites.

  • You can do this with a black tilemap and some blur effect. Erase the tiles in a circle around the player.

  • Are you seriously saying this with a straight face?

    AI is a productivity tool. Millions of people pay for AI subscriptions because it saves them time. If you don't need it (or avoid it to feel morally or intellectually superior) - cool. Just don't speak for everyone else.