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
55
S
14
G
3
Posts: 263
Reputation: 5,892

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
402
S
238
G
89
Posts: 24,644
Reputation: 196,095

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
55
S
14
G
3
Posts: 263
Reputation: 5,892


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 3 guests