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.
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.
I don't check the forums much anymore, but I will receive an email for PMs.

"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."
Posts: 1,419
Reputation: 4,867

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 65 guests