Danwood's Recent Forum Activity

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

  • Like this?

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

  • Try Construct 3

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

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

Danwood's avatar

Danwood

Member since 2 Jan, 2014

None one is following Danwood yet!

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • x5
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

16/44
How to earn trophies