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
56
S
14
G
3
Posts: 265
Reputation: 5,931

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
405
S
239
G
91
Posts: 24,760
Reputation: 197,314

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
56
S
14
G
3
Posts: 265
Reputation: 5,931


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 37 guests