UI scene with ignoreCamera(true) affected by camera scale

All things HTML5 or text based engines, or really any web based engines.
Post Reply
foolmoron
Posts: 25
Joined: Wed Sep 11, 2013 3:34 pm

UI scene with ignoreCamera(true) affected by camera scale

Post by foolmoron »

I've been experimenting with zooming the camera in and out for my game, and I encountered this issue where UI entities will be positioned incorrectly on screen when the camera scale is changed from the default 1.0 (using camera.scaleTo).

I've attached a super simple test project that demonstrates the behavior I'm talking about. Basically I want the UI scene with ignoreCamera(true) to ignore not only camera translation, but scale as well.
signature
User avatar
coolbloke1324
Posts: 181
Joined: Mon Jan 23, 2012 5:20 pm

Re: UI scene with ignoreCamera(true) affected by camera scal

Post by coolbloke1324 »

foolmoron wrote:I've been experimenting with zooming the camera in and out for my game, and I encountered this issue where UI entities will be positioned incorrectly on screen when the camera scale is changed from the default 1.0 (using camera.scaleTo).

I've attached a super simple test project that demonstrates the behavior I'm talking about. Basically I want the UI scene with ignoreCamera(true) to ignore not only camera translation, but scale as well.
Thanks very much for the example showing the broken behaviour! I beleive I have fixed this but I had to comment out a line that I thought (at least used to be) important. I did make a ton of UI updates recently including a lot of work in the method in question so perhaps the section I have commented is no longer required.

Update is in dev branch version 1.2.5.
CEO & Lead Developer
Irrelon Software Limited
http://www.isogenicengine.com
foolmoron
Posts: 25
Joined: Wed Sep 11, 2013 3:34 pm

Re: UI scene with ignoreCamera(true) affected by camera scal

Post by foolmoron »

Man, such a quick response. You're the best.
signature
Post Reply

Return to “HTML5/Web Engines”