Topic: GetScene

In my first scene I have written in the script:

GUI = getScene("GUI")
Mouse = getObject(GUI, "Mouse")

function OnSceneUpdate()

...

then I launch my game but nothing happens.

Where is my fault?

Last edited by Snaab (2013-03-15 01:30:48)

Re: GetScene

The 2 first lines seems correct, maybe the problem is after.
Are you sure that are the good names ? Do you have a scene named "GUI" that contains an object named "Mouse" ?

Re: GetScene

Code is correct.
Try this in your GUI scene: rotate the camera and the text to different positions... 180 degrees rotation etc.
This was the case for me at least.. even tho the camera did show text in gui scene, the game scene did not show anything.
After i rotated objects around they did show in game.

Edit:
I also did some other stuff in the scene, so im not sure if it was the rotation or the other stuff.. smile
but i will check it on my own GUI scene later (if i remember big_smile )

Last edited by pleedian (2013-03-21 06:21:27)