Danwood's Forum Posts

  • It sounds like you want Functions.

    Signal is only used in conjunction with "wait for signal", I believe. If there is no blocks of code waiting for a signal, I don't believe it will have any effect. And signal won't trigger that code to re-run.

    As for efficiency, I'd bet that you don't really need to worry about that in regards to functions.

    You can nest an OR block in a function. Not sure why you would need a top level OR block with functions. That is kind of the point of functions - if you need two blocks of code to do the same thing, they can both call the same function.

    Signal can be triggered like functions in the current 332 beta

  • Assuming i don't use parameters and call them every tick, are more efficient Signals or Functions in order to call events from different parts of the project?

    Aside the parameters and the inability to use functions in OR Block, are there downsides for one of those options?

  • Should i use double quotes also in the "create folder" action? or just for eunning Explorer.exe to access the folder?

  • Yea, already did it as C3 recommends that by default in the event selection :D

  • When i middle click on any form controls (buttons, sliders, checkbox, texbox, etc), it shows the scrolling icon, is there a way to prevent it?

  • Spotted the issue!

    It returns the correct path, BUT adds \\ after the user folder -> C:\Users\Daniel\\Documents\DinoSystem

    It works now after addressing removing it.

    Thank you!

  • Tried the double quotes, still nothing, it opens the Documents folder, but any folder inside it is not opened, even "My Games" or any other.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It strangely opens only the documents folder, although the DinoSystem folder is already present

  • Launch windows explorer

  • Show folder dialog opens a dialog from which you choose a folder, i meant a way to directly open a given folder from ingame, like <NWjs.UserFolder & "\Documents\DinoSystem\">

  • I think it should be something like this. But it won't work in preview, you'll have to export it to NWJS to test.

    It worked, thank you!

    Is there a similiar way to open a folder in my PC from the game?

  • What do you mean by "directly" - without prompting the user? You can only do this in NWJS export. Use NWJS action Write Binary File. I guess you'll have to load CanvasSnapshot into the BinaryData object first.

    Is there an example for how to do it?

  • As title.

  • DinoSystem

  • > able to test if a layer is visible directly in an expression

    For some unknown reason Construct doesn't have such boolean conditions.

    You can make a function which checks if a layer is visible, and use it in "Pick by evaluate" expression.

    Why i didn't think about it? Thank you!