Game Development Community

Fish Demo help

by Anorch · in Torque Game Builder · 10/31/2006 (4:45 am) · 2 replies

Ok I am trying to do the scripting but when i write it as it sais in the tutorial happens that:\
MyFishDemo/gameScripts/game.cs Line: 31 - parse error
>>> Advanced script error report. Line 31.
>>> Some error context, with ## on sides of error halt


And this is written in red:
//---------------------------------------------------------------------------------------------
// endGame
// Game cleanup should be done here.
//---------------------------------------------------------------------------------------------
function endGame()
{
sceneWindow2D.endLevel();
moveMap.pop();
}
function FishClass::onLevelLoaded(%this, %scenegraph)
{
%this.setLinearVelocityX(20)
}

Pls tell me what should I do!

About the author

Recent Threads


#1
10/31/2006 (5:01 am)
Function FishClass::onLevelLoaded(%this, %scenegraph)
{
%this.setLinearVelocityX(20);
}

Add a semi-colon at the end of the line :)
#2
10/31/2006 (5:05 am)
Umm i knew it !!