Clear Background, Transparent Layout or Black?

Get help using Construct 2

Post » Mon Mar 17, 2014 8:43 am

I have an android Puzzle Game been working on, Most layouts have black backgrounds, which is best for performance?

Clear Background --> No , with Black tiledbackground.png VS Clear Background -- > Yes, with Transparent Layout?

--------------------------------------------

Game is 17.8 mb after compiling on XDK crosswalk, Gameplay is fine but Uses 100mb ram upon launch with sound latency issues.

Game is 10 mb after compiling on Cocoonjs, Uses 75mb ram upon launch with no sound issues, but scaling issues.

What Do?
Image Stoorn Memory Puzzle
B
9
S
3
G
1
Posts: 66
Reputation: 1,488

Post » Mon Mar 17, 2014 11:44 am

Set 'Clear Background' to 'No', and make a black opaque layer on the bottom of every layout.
Crosswalk is still on beta, so I prefer CocoonJS at this time.
For dealing with scaling issues, you should design your game with some properties like 'ViewportBottom', 'ViewportRight'.
B
23
S
8
G
1
Posts: 172
Reputation: 2,780

Post » Mon Mar 17, 2014 12:15 pm

Thank you, Iam not experienced with the viewport commands but willing to implement to my game, do you recommend any tutorial or article that I can learn from, the ones on the scirra tutorials dont seem to explain it clearly, any links if available would be appreciated.
Image Stoorn Memory Puzzle
B
9
S
3
G
1
Posts: 66
Reputation: 1,488

Post » Mon Mar 17, 2014 12:34 pm

Optimizing your game with diverse screen size is kind of hard problem, but if you want that, you have to set your project as 'scale outer' mode.

Viewportbottom(0) would be the height of the window and Viewportright(0) would be the width.(zero is layer number, but never mind.) If you're working on scrolling-bounded-layout, Viewportleft(0) and Viewporttop(0) would always be zero. That's the first idea. If you know this, you can set the center of the gameview(by dividing them by 2), and you can put your puzzle sprites by referencing the center position.

You can search with the keywords like 'multiple screen support', but I'm not sure they have the answer you want, because everyone's game design are different.
B
23
S
8
G
1
Posts: 172
Reputation: 2,780

Post » Mon Mar 17, 2014 12:49 pm

Thank you for your time, as this is the only thing left for me to fix in my game before publishing. Will work on it tonight.
Image Stoorn Memory Puzzle
B
9
S
3
G
1
Posts: 66
Reputation: 1,488


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests