How do I load heavy objects before On Load Layout

Get help using Construct 2

Post » Mon Jan 04, 2016 7:54 am

Is there an event before "On load layout" that i can use to pre-load objects that take a lot of resource?
I am using AdMob and during loading ad, the game is very slow and doing dt trick doesn't help (the game still lags and there are times when the screen just freezes).
Because this only happens during ad load, if i could say
- (in some event) load ad
- tell construct that it is ready and it should trigger On Load Layout

if there is no such thing, i will have to add a global variable and all conditions will have to check for it before doing things, but i think there has to be some event beore "On Load Layout" and i just don't know about it.
thanks
B
5
S
1
Posts: 32
Reputation: 439

Post » Fri Jan 08, 2016 5:02 pm

You would have to do that outside of C2, using the HTML that loads the c2runtime.js.
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,396
Reputation: 4,786


Return to How do I....?

Who is online

Users browsing this forum: Janaina and 2 guests