Game Development Community

Gui help

by Afan Olovcic · in Torque Game Engine · 12/06/2006 (5:22 am) · 5 replies

Hi everibody,

Please can somebody help me I nead to finish some presentation antil tomorow ,and I have one problem.
I made some scenes something like in demo "Feature Walkthrought" a fiew scenes ,camera movings but I nead on each scene when camera comes to last point to pushUp the Gui with some picture.

Plese can somebody help me ? I nead help as fast as posible:

Thanks

#1
12/06/2006 (5:50 am)
The quick and easy way would be use a GUI Bitmap Ctrl. Place it where on the screen you wish it to show up, and give it a NAME, and click the 'visible' check box to OFF (Once you are happy with where it is at).
Then in script, you can use 'NAME.setvisible(true);' to make it show up, and 'NAME.setvisible(false);' to hide it.

I dont know how your camera is moving about, but if you have it on a path you should have control over WHERE in the path it is at already- so just wait till the right place in the path and pop the GUI bitmap up...
#2
12/06/2006 (6:10 am)
Thanks for your help

in mission file I make :
new ScriptGroup(Example);
class = "Scene";
After that new wayPoint
NewPath
and for example two NewMarker-s

so that is same like in tge demo

So when camera finish moving in that scene picture has to pop up

where to put that code?

thanks
#3
12/06/2006 (6:37 am)
I wish i could help. I dont currently have anything file on my project computer that contains 'class = "Scene";', so i can not even look at example files and figure it out. I have only fiddled with the path camera for a short time many many months ago. Im sure there is a way to tell once you reach the end, then all you gotta do is '.setvisible(true);'.
All i can subject is, search YOUR project folders for 'class = "Scene";' and see if you can track it down, someplace must be functions that act on the 'Scene' class, it will likely be in a .cs file.
Good luck,
#4
12/06/2006 (6:46 am)
Thanks I already found Scene.cs there it is .

thanks a lot for your help
#5
12/06/2006 (7:01 am)
I do what i can...
Have fun with your project.