Danwood's Forum Posts

  • 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.

  • 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?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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!

  • Like this?

    I mean directly picking instances as an expression, something like: pick objects if object.layer = visible (i made this up ofc).

  • If nothing picked in condition every instance will be executed in action related to them. What kind of condition you want to filter an instance?

    I want an event to pick instances that are on a visible layer.

    For example, i'm using these conditions for the time being:

    - For Each Instance

    - Layer Instance.LayerName is visible

    This works very poorly as i would like to follow with another event using Else, and i would like not to use for each when not really necessary.

    It would be great to be able to test if a layer is visible directly in an expression, is that possible?

  • As title

  • Hi Danwood are you trying to change the angle then shoot or shoot a projectile and then control it's movement? Or maybe shoot towards your mouse cursor at the correct angle? I'll see if I can help you troubleshoot just let me know what your going for.

    Hi Rebel, thank you for your help! I'm trying to change the "Set angle" option for the bullet behaviur in-game.

    In my game, there are agents that move using the Bullet behaviur, and using the "Set angle" option automatically syncronizes their angle with their angle of motion, but there is a specific event where i need them not to do that (because they need to move backwards). I know i could simply disable the "Set angle" option and use an event every tick that keeps their angle and ang. of motion in sync, but I was wondering if there was a way to keep that option and just "uncheck" it during the game for a while, for convenience.

  • Is there an action to change an object's Bullet "set angle" option during the game? If there isn't, Ashley please add it!