How do I Scale my Game

Get help using Construct 2

Post » Tue Apr 22, 2014 8:13 pm

I used the tutorial taught this page here:

ilikekillnerds.com/2014/03/lessons-learnedtips-tricks-using-construct-2/
( just put http:// in front)

(By the way very good tips on various issues)

The instructions were these:

"*Firstly, Sep. your project window size to: 640, 960 (640px wide by 960px in height)
*Set in fullscreen browser mode to scale: Scale outer (Please note with outer scale, make sure any off canvas objects / sprites are far away from the edges or They Could be visible on larger screens)
*Set to orientations: Portrait
*Set Unbounded scrolling on all layers to: Yes
*Set layer to all sizes: 640, 960 (same as project window size) "


Unfortunately, when it test in Intel XDK emulator, I have white edges on the top or side of my game. Depending of the phone model, they changed position, did not understand exactly why.
Any tips on how I can make the scale of my game correctly? Obviously it will be in Portrait.
B
12
S
3
G
1
Posts: 188
Reputation: 1,377

Post » Tue Apr 22, 2014 8:58 pm

That 'tutorial' was rather brief but ok as an introduction. Try searching for "scale my game" in the tutorials section of this website instead. There are loads of tutorials there that will help - but reading is only part of the process, get in there and play around with various settings and see what they do and how they do it. Also search the manual for "scale" and see what comes up...

White edges implies that your background does not fill for the scale mode and aspect ratio you have selected.
A big fan of JavaScript.
B
74
S
20
G
71
Posts: 2,230
Reputation: 44,892

Post » Tue Apr 22, 2014 9:13 pm

Well is explicit that the tutorial is just an indication of how to do this correctly, but my intention of asking this question was to better understand exactly what I should do next and why with this walkthrough does not come to a similar result.
In your opinion, what should I do besides what was mentioned? (Ps: I'm looking for some more reading about, and testing.)
B
12
S
3
G
1
Posts: 188
Reputation: 1,377

Post » Tue Apr 22, 2014 9:19 pm

My best advice is to roll your sleeves up and experiment with some of the tutorial examples - reading will only give you 50% understanding at best, IMO. At some point you've got to start learning to take control of C2 and understand what it's doing for you and what you have to ask it to do for you - because it is very flexible and powerful but it's not able to read your mind.

Regarding the white bars - just make your background bigger so all aspect ratios are covered - I normally use a tiled background that is sized way bigger than the planned screen size so that, when the aspect ratio is changed, none of the background's edges are visible.
A big fan of JavaScript.
B
74
S
20
G
71
Posts: 2,230
Reputation: 44,892

Post » Tue Apr 22, 2014 9:26 pm

What @Colludium wrote should work. Also you could add something like this on start of layout set tiledBG position to "viewportLeft", "ViewportTop" and size to "viewportRight', "viewportDown" - this will make sure that every time you start a game, tiled background will be positioned and sized to cover entire screen.
ImageImageImageImage
B
157
S
66
G
42
Posts: 2,603
Reputation: 35,343

Post » Tue Apr 22, 2014 9:33 pm

I think this part is what most complicates me to keep this aspect of the game that created no matter the device. Well, I'll try all the tips and if anybody else wants to bring something for topic that is related to, the suggestion will be very welcome. @Colludium, you are helping me in all my topics, just my hero XD.
And thanks too @shinkan, can share any other tip for this? ^^
B
12
S
3
G
1
Posts: 188
Reputation: 1,377

Post » Wed Apr 23, 2014 2:18 am

@shinkan, could you explain better this part of set the size of background? ^^
B
12
S
3
G
1
Posts: 188
Reputation: 1,377


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 34 guests