cars' movements
From: Developwebsites (developwebsites_at_aol.comBATSPAM)
Date: 11/21/04
- Next message: inforelation4: "Let.s fight against InfoRelation - spamming service!!!"
- Previous message: Dave Neary: "Re: pointer to a structure"
- Next in thread: Jim Rogers: "Re: cars' movements"
- Reply: Jim Rogers: "Re: cars' movements"
- Reply: gswork: "Re: cars' movements"
- Reply: J. Todd Wasson: "Re: cars' movements"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 21 Nov 2004 22:31:36 GMT
Lets say you have 5 cars at the start line.
all start off at different times and speeds when light turns green.
All speed up and slow down during the race.
I want all cars to move at the same time.
Is the best way to run the cars in a loop from car1 - car5?
however, car1 will always be first to move.
lets say speed for all cars is constant at 50mph.
car1 will always be first at finish line.
random car movement, such as: numb = random(5)
car[numb] to move, will only work on a few cars, not on 25 cars
as chosen car moves while others stand still.
- Next message: inforelation4: "Let.s fight against InfoRelation - spamming service!!!"
- Previous message: Dave Neary: "Re: pointer to a structure"
- Next in thread: Jim Rogers: "Re: cars' movements"
- Reply: Jim Rogers: "Re: cars' movements"
- Reply: gswork: "Re: cars' movements"
- Reply: J. Todd Wasson: "Re: cars' movements"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|