window.onload equivalent in C2

Discussion and feedback on Construct 2

Post » Thu Dec 04, 2014 8:22 am

Is "on start of layout" equivalent to window.onload or any guess ?

Have tried looking at exported html but couldn't find one.
Image
B
50
S
12
G
1
Posts: 254
Reputation: 4,456

Post » Thu Dec 04, 2014 11:23 am

No - the loader starts in DOMContentLoaded, and then it waits for all the images/sounds to download, then it fires 'On start of layout'. It shouldn't matter anyway, why do you need to know?
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,762

Post » Thu Dec 04, 2014 12:14 pm

I was thinking to make plugin for realtime.co, I saw it loads on window.onload event. But looks like either I have to inject in plugin or make dependency on some html file where it will load this.
Image
B
50
S
12
G
1
Posts: 254
Reputation: 4,456


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 6 guests