calminthenight's Recent Forum Activity

  • Follow up. It's an issue with multiple screens. When the NWJS executable is launched inside 'Display 2' at 200% DPI scaling, for some reason it is reading the DPI value of 'Display 1'. This only happens at 200% scaling.

  • When I use the PlatformInfo.DevicePixelRatio to return the DPR value of a screen it works flawlessly in preview and in a NW.JS export. If the screen is set to scale to 125% it returns 1.25, 150% 1.5 etc. This works all the way up to 200%, where for some reason it displays correctly when previewing the project (2) however, using a NW.JS export it returns a value of 1.25.

    Any ideas, possible bug?

  • dop2000

    Uuuurrgh. How have I not found this before haha. Thanks

  • This might be a stupid question. But I can't find an option to query the resolution of a display, not just the browser window.

    Is it possible?

  • Ashley

    Thanks for the info and demo project!

    I'm not relying on anything to do with this in a project, I just wanted to get a better understanding of how the engine handled multiple sheets.

    Thanks for filling me in

  • dop2000 Thanks

  • Just wondering what the process is when including multiple event sheets in a layout.

    Do the included event sheets run simultaneously from top to bottom or are the events of any sheets after the first sheet essentially added onto the first sheet which is then read from top to bottom?

    Cheers

  • dop2000 I plugged it back in today and it worked, it was just an event sequence issue. I've added some other aspects and I think I'll do a tutorial for it as others might find it useful.

    Thanks again!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I actually tried that first suggestion straight away after your first reply and it didn't work but my brain is a bit fried so I'll check again tomorrow. Thanks

  • Hidop2000

    Thanks for that, I always forget about loopindex :/. The first part works perfectly for a one-shot between 2 points however, what I'm really looking for is how to maintain the line of sprites while the points move, for a continuous laser effect. Any ideas on that?

  • I can't seem to get the math working for this, any help would be greatly appreciated.

    I have two points A & B, and I calculate the distance between these, divide it by the length of the object I am wanting to spawn, then store it as an integer in a variable. The game then spawns a number of object instances equal to that variable.

    What I am trying to do is spread all the currently spawned instances out evenly between the two points.

    For reference, I am using a raycast every tick to get the positions and distance of the points. I'm trying to create a continuous laser weapon that uses small sprite segments for animation.

  • Thanks, that's what I figured

calminthenight's avatar

calminthenight

Member since 28 Jan, 2018

Twitter
calminthenight has 6 followers

Trophy Case

  • 6-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

11/44
How to earn trophies