What will use less memory?

Get help using Construct 2

Post » Tue Jul 30, 2013 9:48 am

I have this map. I want to put it in 1 layout. So I have question about it.

What will work faster?

- If I will split this map to parts, and then put it it game as sprites and then make collision polygons for each of them?

or

- If I will make all black color with tiled background and rounded edges with sprites?
B
39
S
17
G
6
Posts: 238
Reputation: 7,985

Post » Tue Jul 30, 2013 10:31 am

Try to slice your sprites to be smaller. Not only it uses less memory. It also allows greater modularity.

For collision polygons, use a sprite specifically for "solids" in your case. Expand them to fill the area as neccessary. You can turn them invisible in your game.
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
30
S
11
G
11
Posts: 411
Reputation: 8,469

Post » Tue Jul 30, 2013 10:48 am

[QUOTE=keroberos] Try to slice your sprites to be smaller. Not only it uses less memory. It also allows greater modularity.

For collision polygons, use a sprite specifically for "solids" in your case. Expand them to fill the area as neccessary. You can turn them invisible in your game.[/QUOTE]

What if I'll make collisions like this and then fill empty places with tiled background?

Also, which is better, two tiled backgrounds with length of 4 or 1 with length of 10?
B
39
S
17
G
6
Posts: 238
Reputation: 7,985

Post » Tue Jul 30, 2013 12:35 pm

Did you stretch the solid blocks for one floor instead of having many solid blocks? If so, you are doing correctly.

Tiled backgrounds are better with smaller sizes. Let's say 64 x 64 to 512 x 512. But be sure to check performance on mobile devices. Some older smartphones will slow down badly with larger tiles.
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
30
S
11
G
11
Posts: 411
Reputation: 8,469

Post » Tue Jul 30, 2013 7:56 pm

You can check the memory usage located at the bottom of Construct 2 to get a rough estimate of how much memory your using
B
18
S
4
G
3
Posts: 436
Reputation: 4,801


Return to How do I....?

Who is online

Users browsing this forum: Cubeeo and 8 guests