car race, best language and code?

From: Developwebsites (developwebsites_at_aol.comBATSPAM)
Date: 09/28/04


Date: 28 Sep 2004 18:44:58 GMT


I have 10 cars. All have to start when the light turns green.
[Obviously, in a real race not all cars start at the same time and at same
speed]

 I had tried:
 repeat with loops = 1 to 100
 repeat with x = 1 to 10
  speed = random(20)
  ver = ver - speed
  sprite(x).locv = ver
 end repeat
 end repeat

 however, this isnt realistic as cars 1-10 always run in sequence.

 So...

 I tried:
 repeat with loops = 1 to 100
 car = random(10)
 speed = random(20)
 ver = ver - speed
 sprite(car).locv = ver
 end repeat

 however, this isnt realistic as only 1 car moves at a time and
 the same car could move again while others are standing still.

I cant use a loop, I cant use random so
whats the best solution?



Relevant Pages

  • Re: car race, best language and code?
    ... >I have 10 cars. ... > end repeat ... > sprite.locv = ver ... >I cant use a loop, ...
    (comp.programming)
  • Re: **Stack It Up Game**
    ... unicycledood wrote: ... Thats how I felt. ... I cant believe how many cars are out on the road with ...
    (rec.sport.unicycling)
  • Re: Whos bought or is buying an HDTV for Xbox360
    ... Nice house, nice cars. ... wonderful wife, able to buy what I want when. ... It's a real shame. ... Now you cant seem to make a comment anywhere without some smartarsed arsehole making a worthless comment. ...
    (uk.games.video.xbox)
  • Re: Lets get rid of practice, quali, pitstops & points
    ... >> waived pink stripey flags. ... >> without being on the limiter, Max gets to flog your arse. ... > The crew aren't being asked to cross, sweep, clean, push cars across ... yet that car cant be made to do 50mph for 5 minutes? ...
    (rec.autos.sport.f1)
  • Re: Steel brakes, steel brakes.
    ... >> cant out-brake each other. ... > You appear to think that carbon fibre brakes make the cars stop quicker. ... Heavier brake rotors will increase the ...
    (rec.autos.sport.f1)