Best way to handle 45 full screen images?

Get help using Construct 2

Post » Tue Jul 07, 2015 10:13 am

Hi Everyone,

this is my first post, since this is the first time Construct2 has really stumped me!

I'm creating a game whereby along the way you 'unlock' pages of a picture book I wrote/illustrated.

The problem is each is a full-screen image so loading them into a sprite sheet at 1080p (there's 45 pages) would presumably crash pretty much any phone on the market...! The images are black and white so hopefully aren't in and of themselves going to make the filesize too big...I think this is more a ram issue?

I considered loading from URL but I can't guarantee someone will have internet access at the time of viewing and don't want it to bug out.

What is the best approach memory-wise? This really is an integral feature of my game so dropping it isn't an option unfortunately.

Is it a question of creating 45 separate layouts with 1 page in it's own dedicated sprite per layout?

any help or advice very much appreciated,

thank you!

John
B
6
S
2
Posts: 28
Reputation: 508

Post » Tue Jul 07, 2015 10:26 am

I have a solution for you, your problem is that all images are full screen, so load your images in a small size, and then when the user enters a page the image automaticly scales up (you need to create some events) rather then all images are big size from the beginning and it will cause blocking the user's ram.
B
6
Posts: 38
Reputation: 338

Post » Tue Jul 07, 2015 10:33 am

I see what you mean, that won't really work with my setup unfortunately...

the player cycles through the pages using the buttons on the right

does anyone have any ideas how best to load in/or cycle through these?

Image
B
6
S
2
Posts: 28
Reputation: 508

Post » Tue Jul 07, 2015 10:45 am

Can you show an example of how page looks like? Maybe it could be split to smaller objects and instead of making one big image, recreate it in C2 from smaller images.

If that's not the case, you can always use one image for one layout and make each image separate object. So on each layout only one image is loaded into a memory.

Anyways having 45 full hd images should not be a problem, but if there's another way to go then you should definitely go that way.
ImageImageImageImage
B
158
S
67
G
43
Posts: 2,603
Reputation: 36,003


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests