$pref::spaceshooter::bestScore = "18342";
by bentgarney · in Torque Game Builder · 03/07/2005 (12:10 am) · 3 replies
#2
The function you want to alter is in the Player.cs file and looks as follows
//-----------------------------------------------------------------------------
// Add Player Score.
//-----------------------------------------------------------------------------
function addPlayerScore(%score)
{
// Update Player Score.
$playerScore += %score;
// Update Best Score if needed.
if ( $playerScore > $pref::spaceshooter::bestScore )
$pref::spaceshooter::bestScore = $playerScore;
// Update Scores.
updateScores();
}
Simply remove the update best score lines or the whole function if you want to. Remember to remove any calls to the function as well though.
03/07/2005 (12:36 am)
@Robert The function you want to alter is in the Player.cs file and looks as follows
//-----------------------------------------------------------------------------
// Add Player Score.
//-----------------------------------------------------------------------------
function addPlayerScore(%score)
{
// Update Player Score.
$playerScore += %score;
// Update Best Score if needed.
if ( $playerScore > $pref::spaceshooter::bestScore )
$pref::spaceshooter::bestScore = $playerScore;
// Update Scores.
updateScores();
}
Simply remove the update best score lines or the whole function if you want to. Remember to remove any calls to the function as well though.
#3
puzzling
03/07/2005 (1:28 pm)
The file in question will be under your spacescroller\client directory. You shouldn't get the updating $pref::spaceshooter::bestScore if you have deleted it.puzzling
Torque Owner Joe Bestor