04-29-2010, 03:57 PM
Is this better? I just made the points count up every 0.1 seconds. I wouldn't change the 0.1 seconds if I were you, because the if statement will only loop after those amount of seconds have gone by. For instance if it was a full second, the jet might be fully underground in the time that the if statement is waiting for the second to be over, and it would not count as a crash until the if statement is looped again. If it was 5 seconds it would be even worse because you could be under the ground a whole 4 seconds before the if statement could determine that the jet has crashed. Either keep it a low number on the wait, or add a different if statement that checks to see when the plane crashes. I wish I could make this a little less laggy also.
Check out my best projects so far and please comment:
Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
|