Gizmog1 Don't Lurk In The Bushes!

Joined: 05 Mar 2003 Posts: 2257 Location: Lurking In The Bushes!
|
Posted: Sat Oct 22, 2005 8:02 pm Post subject: |
|
|
Yeah, very easily. Have a for loop counting upwards, and have a while loop going that's checking to see when the Hero or NPC are above or below a certain point. When their X/Y position gets to the right amount, meaning they're past the finish line, have it set a variable (Player Time, OpponentTime) to the number the counter was at. That'd be accomplished by "Setvariable (PlayerTime,RaceTimer). Then have it wait for the other person to cross the line, get their time, and whichever time is smallest wins. |
|