Hey there, Defold team!
Well, my loader enables a collection proxy, switches focus to it and on init camera position is set off screen and then flies to a screen center. But nothing happens until you move a mouse cursor, while print line in camera init function works fine.
Loader also has a camera, and both have some shadows. It looks like both shadows stack once mouse moved. I.e. it turns on loaded proxy camera only when mouse moved.
Here’s “proxy_loaded” process:
msg.post ("/proxies#metaproxy", "init") msg.post ("/proxies#metaproxy", "enable") msg.post ("/proxies#metaproxy", "acquire_input_focus")
And cam init function:
msg.post("camera#camera", "acquire_camera_focus") go.set_position (coordsMeta, "/cam") go.animate("/cam", "position", go.PLAYBACK_ONCE_FORWARD, vmath.vector3(0,0,0), go.EASING_OUTCIRC, 1, 0.5) print ("DONE!")
It prints DONE!, but the screen is empty and starts working only when you move the cursor.