Confused as anything
by Anthony Ratcliffe · in Torque Game Builder · 09/27/2007 (8:00 am) · 2 replies
Hey,
I just started my games design course at university and its based on toque, i wanted to get ahead so i bought a few core texts still waiting for them, however i have noticed there are tutorials but i have no idea how to access them do i have to buy the game first, which seems a bit silly if it is as how do i try out and engine which has no documentation tutorials? If anyone has a custom tutorial if this is the case it would be great. The engine its self as of google search seems to have little support, is this a common problem as i may think of using another engine if this is the case.
regards
ant
I just started my games design course at university and its based on toque, i wanted to get ahead so i bought a few core texts still waiting for them, however i have noticed there are tutorials but i have no idea how to access them do i have to buy the game first, which seems a bit silly if it is as how do i try out and engine which has no documentation tutorials? If anyone has a custom tutorial if this is the case it would be great. The engine its self as of google search seems to have little support, is this a common problem as i may think of using another engine if this is the case.
regards
ant
About the author
#2
//---------------------------------------------------------------------------------------------
// Torque Game Builder
// Copyright (C) GarageGames.com, Inc.
//---------------------------------------------------------------------------------------------
//---------------------------------------------------------------------------------------------
// startGame
// All game logic should be set up here. This will be called by the level builder when you
// select "Run Game" or by the startup process of your game to load the first level.
//---------------------------------------------------------------------------------------------
function startGame(%level)
{
Canvas.setContent(mainScreenGui);
Canvas.setCursor(DefaultCursor);
new ActionMap(moveMap);
moveMap.push();
$enableDirectInput = true;
activateDirectInput();
enableJoystick();
sceneWindow2D.loadLevel(%level);
}
//---------------------------------------------------------------------------------------------
// endGame
// Game cleanup should be done here.
//---------------------------------------------------------------------------------------------
function FishClass::onLevelLoaded(%this, %scenegraph)
function endGame()
{
%this.setLinearVelocityX(20);
sceneWindow2D.endLevel();
moveMap.pop();
moveMap.delete();
}
when i run it all i get is a black screen?
its not a gfx problem as i have a geforce 7300
09/27/2007 (9:05 am)
Cheers got another problem when i run my game i get a black screen for the fish tut this is my source i followed it txt to txt i think//---------------------------------------------------------------------------------------------
// Torque Game Builder
// Copyright (C) GarageGames.com, Inc.
//---------------------------------------------------------------------------------------------
//---------------------------------------------------------------------------------------------
// startGame
// All game logic should be set up here. This will be called by the level builder when you
// select "Run Game" or by the startup process of your game to load the first level.
//---------------------------------------------------------------------------------------------
function startGame(%level)
{
Canvas.setContent(mainScreenGui);
Canvas.setCursor(DefaultCursor);
new ActionMap(moveMap);
moveMap.push();
$enableDirectInput = true;
activateDirectInput();
enableJoystick();
sceneWindow2D.loadLevel(%level);
}
//---------------------------------------------------------------------------------------------
// endGame
// Game cleanup should be done here.
//---------------------------------------------------------------------------------------------
function FishClass::onLevelLoaded(%this, %scenegraph)
function endGame()
{
%this.setLinearVelocityX(20);
sceneWindow2D.endLevel();
moveMap.pop();
moveMap.delete();
}
when i run it all i get is a black screen?
its not a gfx problem as i have a geforce 7300
Torque 3D Owner Stephen Zepp