[solved] onCreate called twice?

For developers using the Construct 2 Javascript SDK

Post » Thu May 08, 2014 8:37 am

It appears that my function is called twice. This is a problem obviously.

Image

And my console log displays THREE.WebGL Renderer 67 twice!
Image

Do you have any idea why that could be?
There only is one object in the game.
Last edited by Schoening on Thu May 08, 2014 5:54 pm, edited 1 time in total.
B
40
S
11
G
4
Posts: 665
Reputation: 8,453

Post » Thu May 08, 2014 12:35 pm

The runtime does not call that method twice. The console log you have posted does not prove it has been called twice, either. I don't know where, when or why THREE logs to the console, but it could be doing it twice itself for some reason.
Scirra Founder
B
400
S
237
G
89
Posts: 24,550
Reputation: 195,537

Post » Thu May 08, 2014 5:18 pm

Thanks Ashley. I look into it from the Three.js side then :)
B
40
S
11
G
4
Posts: 665
Reputation: 8,453


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests