How do I run function after load (web game)

Get help using Construct 2

Post » Mon May 04, 2015 11:14 am

I saved my game to HTML5 files and I added a few things with visual studio. can I run JS code after loading complete but not through Construct 2. I want to add my own function with visual studio but I do not know how Run it after the loading complete. from where i can call my function?
B
13
S
2
Posts: 95
Reputation: 861

Post » Mon May 04, 2015 6:03 pm

The browser object has a way of executing js code, maybe you can trigger your script with that.
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 788
Reputation: 3,788

Post » Tue May 05, 2015 5:49 am

Thanks, I'll check it out.
B
13
S
2
Posts: 95
Reputation: 861

Post » Tue May 05, 2015 7:07 am

you might also want to consider coding your Js into the index.HTML file
Image
B
75
S
23
G
3
Posts: 673
Reputation: 9,293


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 26 guests