dop2000's Recent Forum Activity

  • Oh, you mean remove item from the layout? Then yes, you are right, your code will not work, because as Kyatric mentioned, "Item is NOT on-screen" condition actually picks all items that are not on-screen. So when there are no item instances at all, this event will not be triggered.

    You need to change your code like this:

  • Zebbi, there is a working link to capx in the comment right above yours.

  • I tested your game and everything works fine. The dog goes "Woof" and I am able to pick up a can of beer or battery or whatever that thing is.

    I think the problem appears when you have items in the inventory/UI. You need to exclude items that are pinned to the UI. So add "Stage_Item is NOT pinned" condition to all three events #175, 178 and 181.

    Also, when both NPC and item are on-screen, you can change your event to this:

  • If you need to access files from system folders (like Program Files, Users\name\AppData etc.), then use environment variables.

    If you just want to run a file from the current drive (for example E:\Games\MyGame\MyFile.exe), try it without the drive name:

    "\Games\MyGame\MyFile.exe"

    Or you can get the drive letter from the AppFolder expression: left(NWjs.AppFolder, 1)

  • If I understand you correctly, you need Windows environment variables.

    "%programfiles%\paint.net\PaintDotNet.exe"

  • Hmm, I don't know.. You might need to place each enemy+FOV+shadowlight on a separate layer. Say, reserve 10 layers for that and spawn new enemy on an unoccupied layer.

  • Still, it will be much easier if you post your capx. It's a guesswork without it.

    There may something wrong with layer settings, behaviors, image points etc.

  • Thanks!

    Discovered a problem - the game won't run on IOS.. Apparently, Safari doesn't like audio files that are too short (less than 0.1 seconds or so?)

    It should be fixed now!

  • I believe this is happening because you are "dragging" your platform object over the solid ground. You need to use "Simulate control" action, or not use Platform at all and do everything with Bullet or some other behavior.

    Take a look at the Auto-runner template in C2.

  • I know this is an old topic, but in case anyone else is looking for a solution - I managed to do this with some JS code.

    dropbox.com/s/kbxitrfg4h1xxoc/WindowFocus.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I managed to do this with some JS code.

    dropbox.com/s/kbxitrfg4h1xxoc/WindowFocus.capx

    Not sure if it will work on all platforms. You can try different event handlers instead of "onblur".

  • This code should work. There's probably something else that's causing this issue.

    Are these two events top-level? (not nested under some other events?)

    It will be much easier to fix this problem if you could share your capx.

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 257 followers

Connect with dop2000

Trophy Case

  • 8-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • x5
    Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • x3
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x13
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

28/44
How to earn trophies