On-demand image loading

Discussion and feedback on Construct 2

Post » Fri Mar 30, 2012 3:33 am

Is it possible in Construct 2, or would it be asking for too much as a feature request?

Right now when we load a Construct 2 game, we load the entire HTML5 page before we start playing. If we make a game with large world and a lot of image files, that's going to take a long time to load. If images can be loaded on demand (eg. where the camera is showing, plus a margin beyond), it would be possible to have a large world without either split the game up, takes too long to load, or having to shrink the game.
B
19
S
6
G
1
Posts: 116
Reputation: 2,730

Post » Fri Mar 30, 2012 4:22 am

Image compression in C2 and making sure the imported texture is the same as displayed size (don't import 2000X2000 images that you then shrink to 128X128 in the layout, make them directly in 128X128) will allow you to reduce the size of your project (Png 8 bits does wonders).

A better control on loading assets is on the todo list, and the todo list is endless ^^
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Fri Mar 30, 2012 5:15 am

Indeed I can (or can't, either) imagine the todo list reaching the size of the cosmos, so I don't want to sound demanding about it XD

Thanks for the type Kyatric. I hear from HBGames that there is a plugin for saving data into cookies as well. Would that assist games with a lot of image resources in any way?
B
19
S
6
G
1
Posts: 116
Reputation: 2,730

Post » Fri Mar 30, 2012 5:23 am

Not really.
Webstorage is more about string type of datas.
You can use it to store the progression in a game, store values about the player that you will to keep consistantly between two times he might launch the game/close the tab/open it again, etc...

In my game Drop Da Piew I used it to store the levels/scores/configuration options...


A PNG 8-bit compression on most textures will keep alpha channels (transparency), keep the quality and still majorly reduce the size of the images.
And if their original size is adapted to their display size you won't use more size than necessary.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Fri Mar 30, 2012 6:47 am

Thanks again Kyatric. PNG 8-bit compression sounds exactly like what I need then, and it's good to hear that the alpha channel remains.

Good to know about Webstorage though, it's going to come in handy!
B
19
S
6
G
1
Posts: 116
Reputation: 2,730


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 10 guests