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!
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!
Torque Owner Philip Mansfield
Default Studio Name
{
%this.setLinearVelocityX(20);
}
Add a semi-colon at the end of the line :)