Image Load

Get help using Construct 2

Post » Fri Mar 22, 2013 5:02 pm

Hey guys and girls, I have a few queries about my game.

1. I have JSON files which are called through QueryString at the start of layout on my menu layout. However, for some reason it doesn't always load properly. From what I can tell, it doesn't load when the game isn't cached i.e. when they scirra logo appears and it loads all the game content fresh.

2. In my JSON file, I have a URL for a player image depending on which sprite the player chooses externally. However, on the first time the player sprite is loaded, it takes a few seconds to show. Is there anyway I can pre-load it into a sprite so that it is shown instantly when the player reaches that layout. I've seen the plugin 'Load Image at from URL at runtime', however, this won't work as the URL for the image is dynamic, and will only be available at the start of my menu layout when it is called from the JSON file.

Any help is appreciated, thank you.

Rogalog.Rogalog2013-03-22 17:02:28
B
12
S
1
Posts: 29
Reputation: 908

Post » Thu Mar 28, 2013 6:11 pm

I think i've managed to sorta correct my first issue, but the second one is beginning to be quite a pain. Is there anyway to preload the images to a sprite before that layout is called? It looks very bad when a layout begins and the images aren't there, they only appear after a few seconds....
B
12
S
1
Posts: 29
Reputation: 908

Post » Thu Mar 28, 2013 6:51 pm

You could use a custom loading screen,
and "On image URL loaded" on your sprite to end it
B
20
S
5
G
8
Posts: 325
Reputation: 6,473

Post » Wed Apr 03, 2013 5:15 pm

Thanks lemo, i've added that and it's working well now. :)
B
12
S
1
Posts: 29
Reputation: 908


Return to How do I....?

Who is online

Users browsing this forum: flemmig, Matthew de, semaso, Skebab, Virpoja and 13 guests