Scalling objects uniformly.

Get help using Construct 2

Post » Fri Apr 06, 2012 6:00 pm

I recently made a game but i forgot scirra doesn't except games past 800px in width. I want to scale everything down but when i scale each object is scaling individually, creating spaces in between.

Is there a way to scale everything at once maintaining the same shape. If so this would be awesome.
B
22
S
5
G
3
Posts: 194
Reputation: 5,855

Post » Fri Apr 06, 2012 6:55 pm

I am not sure but you can try this.

First, calculate new screen screen size with same aspect ratio as orginal. Lets say your curent resolution is 1280x720, and max width is 800, then your new resulution would be 1280:720=800:X => which is 800x450.

Second, calculate how much you must zoom out to achieve same aspect ratio of displayed objects. On orginal resolution 1280 layout scale is 1.0, your new layout scale would be 1280:1=800:X, which is 0,625.

edit: i messed up screen ratios first timepodpathos2012-04-06 19:28:26
B
12
S
2
G
2
Posts: 96
Reputation: 1,583

Post » Fri Apr 06, 2012 7:00 pm

Set layer scale, or set layout scale, is what you want.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Fri Apr 06, 2012 7:47 pm

If you are made game in specific screen size then you cant just change layout or layer scale - screen size stay the same...
it works

1280x720
800x450 podpathos2012-04-06 19:51:13
B
12
S
2
G
2
Posts: 96
Reputation: 1,583

Post » Sat Apr 07, 2012 5:08 pm

thanks guys. I love this community :-)

I almost had a nerd rage when i found out my game was too big lol. All my mechanics would have been ruined if it weren't for you guys. Thank you i will try it now.
B
22
S
5
G
3
Posts: 194
Reputation: 5,855

Post » Sat Apr 07, 2012 5:23 pm

i changed the scale rate but nothing happen. My objects are too still too big for the screen.
B
22
S
5
G
3
Posts: 194
Reputation: 5,855

Post » Sat Apr 07, 2012 5:37 pm

Send a new capx with same window size and one sprite (image) you usepodpathos2012-04-07 17:38:09
B
12
S
2
G
2
Posts: 96
Reputation: 1,583

Post » Sat Apr 07, 2012 6:06 pm

http://dl.dropbox.com/u/11360597/BloxitySample.capx

The Game is called Bloxity. I want to release it but i can't seem to scale the layout. As you can see in the Capx the assets are too big for the window size.

This is not my actual game i just brought in the assets into a new project. But it has the same layout size. 800x624
B
22
S
5
G
3
Posts: 194
Reputation: 5,855

Post » Sat Apr 07, 2012 6:28 pm

if your orginal resolution is 800x624 than you can upload your game... I dont understand what is a problem...You can upload(according to rules) but your "orginal" resolution is too small and object are too big? Is your orginal resoulution realy 800x624, and problem is how to make objects small? Then how small? Do yuo want holle layout to be on screen?
B
12
S
2
G
2
Posts: 96
Reputation: 1,583

Post » Sat Apr 07, 2012 6:29 pm

B
22
S
11
G
9
Posts: 133
Reputation: 6,572

Next

Return to How do I....?

Who is online

Users browsing this forum: DemantDigitalArt, farfetchd83, mjj1990 and 5 guests