Topic: EnableCameraLayer Issue(Resolved)
In one scene I have my level.
In another scene I have some text that updates every frame and a camera.
I used the enableCameraLayer() function on the first scene to project the 2nd scene over the 1st one.
When I run the 2nd scene, the text works.
However, when I run the first scene (the level scene), the 2nd scene's text appears but it only shows the default text, and it doesn't update at all.
Scene 1 code:
GuiScene = getScene("Pnt_scene")
Camera = getObject("camera0")
enableCameraLayer(Camera, GuiScene)
Scene 2 code:
txt_points = getObject("Text0")
t = 0
function onSceneUpdate()
t = t + 1
new_text = "Time = " .. t -- change the last "t" to display another info
setText(txt_points, new_text)
end
Any help?
Last edited by Tutorial Doctor (2013-09-18 20:52:24)