|
|
|
#1 |
|
Junior Member
Join Date: Jun 2004
Posts: 1
|
random directions
i was making a quick thing where you could use the arrow keys to drive a car around in an arena and wanted to add in other cars that moved around randomly which you could crash into.
i managed to program the player car,
but i cant program the computer car to move randomly based upon the same physics. working with flash 5, please help Last edited by RampnRail; 10-15-2004 at 01:57 PM. |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Feb 2004
Location: Los Angeles
Posts: 2,920
|
Here's one way to do it. This uses a random number from 0-4. If 1,2,3,4 the computer is presing an arrow key, and if 0, the computer is doing nothing.
|
|
|
|
![]() |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|