Game Development Community

Having a bit of trouble with custom main menu

by Eric Thomas Patton · in Torque Game Engine Advanced · 10/12/2009 (2:19 pm) · 4 replies

I'll first explain what it is that I'm attempting to do. We are working on a virtual college campus and for the main menu, we wanted to have a mission in the background, which we have successfully done. We then thought it would be interesting to have it in a classroom and for each menu, have the camera move along a path and stop at various objects in the room that our gui can be put on top of.

For example, say we have a blackboard and a whiteboard on the walls. If the blackboard is the main menu and the whiteboard is the options menu, then when you click options on the blackboard we want the camera to move from the blackboard to the whiteboard and face it so we can set the canvas to our gui with marker font on it.


So far, I can only get the camera to continuously loop around the room (pathcamera) and can't figure out how to make it stop on a node, go to another specified node when i click a button, or even aim it at the objects.


I took a look at the TGEDemoAdvanced to see how they set up the fly by, but can't figure out where they have the code for aiming and moving the camera. It seems they are switching to other scenes from the code i could find, but we want a smooth transition rather than just jumping to another path and following it to the end.

#1
10/12/2009 (8:53 pm)
ok, i figured out turning the camera is ridiculously easy. you just edit the nodes in the mission editor and rotate it like you would any other object.


still having a bit of trouble with stopping at nodes though.

once i have this all figured out (and have permission from the various sources whose code i took pieces from) i'll post a step by step guide for how to have a main menu like this.
#2
10/12/2009 (11:04 pm)
bleh lol i'm dumb, i figured it out once i double checked the pathCamera.cpp and found the pushBack console method. now to actually implement it all and make a little guide
#3
10/13/2009 (2:49 am)
Glad to see you figured it out. Sorry to say there isn't much help on the forums these days.
#4
10/13/2009 (9:57 am)
thanks :) i figure everyone's attention is on T3D at the moment haha