dop2000's Forum Posts

  • find(string, "example") will return a zero-based index.

  • When you click a family, multiple instances of this family are selected on the layout. And if these instances have different values in the boolean variable, then it's displayed as "-".

    "-" is not a value! It's just used to tell you that there is a mix of True and False values.

  • "Every X seconds" count doesn't reset with the start of the layout. So if you've switched from another layout, "Every 10 seconds" event may trigger sooner than in 10 seconds, or even immediately.

    That's why it's recommended to use Timer behavior for tasks like enemies spawning.

    Edit: sorry, for some reason I thought the question was about "Every x seconds". Wait action should not have this issue.

  • Are you talking about the boolean variable? Yes, minus sign in the checkbox means that multiple instances have different values in this variable - some are True and some are False.

  • You should be able to copy and paste them. Right-click on layout or event sheet name and select Copy.

  • part12studios Instead of "Set tile" in event 4, use "Erase tile" action.

    I don't know why it stopped working, this is pretty odd.

    EDIT: Found this in the Release Notes to r218:

    Tilemap: allowed setting invalid tile IDs via actions

    A change like this can break old projects..

  • I think empty cells in arrays contain 0 (zero). You can also fill them with "" (empty string). But there is no Null value in Construct.

  • It's not just you.

  • Use "System Compare two values" condition.

  • Yes, but you need to use a different notation -

    instead of runtime.globalVars.gameState = 10

    use runtime.globalVars["gameState"] = 10

    If you extracted your variable name from JSON into another variable VarName, then your script should look like this:

    runtime.globalVars[runtime.globalVars.VarName] = 10

  • You mean access variable by its string name? It's possible with scripting:

    runtime.globalVars["myglobalvar"] = 123

    Ashley warned though, that string syntax like that will be broken in advanced minification mode.

  • With events you can only do it one by one.

    Set Var1 to Dictionary.Get("Key1")

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • El Constructorr Lol, you are right. For some reason I thought that images in C3P file are combined in spritesheets.

    Still, it will be useful to have access to the list of sprite animations from events or from a script.

  • I need to export images from all sprites (all animations and all frames) from a large project. Is there a way to get the list of animations, maybe with some scripting?

    I found a mention of an old addon that can do this, but the download link is long gone.

    Tagged:

  • Try remote preview, or exporting and uploading your project. Also, search this forum - the CORS error is very common and there are many topics about how to fix it.