Game Development Community


#1
03/07/2005 (12:10 am)
Speaking of $prefs, is a defaults.cs file necessary? How about we load the prefs.cs file instead and drop the defaults.cs file. I realize the prefs.cs file is modified by T2D.
#2
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
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