Game Development Community

Need Help Designing a Game with Checkpoints

by Howard University · in Technical Issues · 03/06/2006 (4:38 pm) · 1 replies

I am designing a game using the racing starter kit. I am having difficulties modifiying the checkpoint script so that when the car passes through the checkpoint it will increment a persons score. Also once i design this script how do I implement it into the game as a checkpoint.

#1
03/08/2006 (10:11 am)
In checkpoint.cs enter this:

...
  if(%obj.client.nextCheck == %trigger.checkpoint)
  {
    [b]messageAll('MsgClientScoreChanged', "", %obj.score, %obj);[/b]
    if(%trigger.isLast)
    ...