Gui Problem..Please help
by Bryan Mackenzie · in Torque Game Builder · 07/18/2009 (9:37 am) · 0 replies
I am having two problems:
First I created a start button in the gui it doesn't work. Also when I play the game the gui starts the background image does not show up and the mouse has trails that stay on the screen. Can anybody tell me what I'm doind wrong?
I'm sure I probably messed something up, I new to this so please bear with me.
function initializeProject()
{
exec("~/gui/mainScreen.gui");
exec("~/gui/Title.gui"); //I saved my Gui as Title.gui
exec("./gameScripts/game.cs");
Canvas.setContent(TitleScreen); // I named the GuiControl "TitleScreen"
Canvas.setCursor(defaultCursor);
function startFirstLevel() // This is the command I gave the start game button
{
startGame( expandFilename($Game::DefaultScence));
}
}
First I created a start button in the gui it doesn't work. Also when I play the game the gui starts the background image does not show up and the mouse has trails that stay on the screen. Can anybody tell me what I'm doind wrong?
I'm sure I probably messed something up, I new to this so please bear with me.
function initializeProject()
{
exec("~/gui/mainScreen.gui");
exec("~/gui/Title.gui"); //I saved my Gui as Title.gui
exec("./gameScripts/game.cs");
Canvas.setContent(TitleScreen); // I named the GuiControl "TitleScreen"
Canvas.setCursor(defaultCursor);
function startFirstLevel() // This is the command I gave the start game button
{
startGame( expandFilename($Game::DefaultScence));
}
}