Author Topic: scaleX the hole scene  (Read 117 times)

Johnny Hammer   «   on: May 18, 2012, 06:31:04 AM »
Hi Everyone :)

Is it possible to scale on x-axis the hole scene ?
I am making an application on a fullHD system - 1920 x 1080, but it's going on a screen that resizes application to a value that it looks like it's 2560 x 1080. So I need to scale it down (on x), and the monitors will scale it up to a good values.

So the best solution would be (pseudocode)

scene.align = StageAlign.TOP_LEFT;
scene.scaleX = 1920/2560; // scale hole scene on x
(AllObjects).x = (AllObjects).x * (2560/1920) // move all objects to the right

Is it possible to make something like this in Flare?

I tried to change aspectRatio of the camera but it's not that what I want.
Some help? Thanks :)

Ivan Vodopiviz   «   Reply #1 on: May 18, 2012, 11:19:42 AM »
Hi,

Yes, aspectRatio won't help you much in this particular case. And I'm afraid that scaling isn't really an option, so you'll have to tinker with the camera settings to archieve a similar effect.

I'm not really sure if it'll help you, but this example might give you some ideas. Make sure to open the example in a new browser window so you can resize and see how it works.

Cheers,