# Kirupa, how did you make that cool random traffic animation?

**URL:** <https://forum.kirupa.com/t/kirupa-how-did-you-make-that-cool-random-traffic-animation/1619>\
**Category:** flash\
**Created:** [May 26, 2002, 4:00am UTC](https://forum.kirupa.com/t/kirupa-how-did-you-make-that-cool-random-traffic-animation/1619 "2002-05-26T04:00:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 26, 2002, 4:00am UTC](https://forum.kirupa.com/t/kirupa-how-did-you-make-that-cool-random-traffic-animation/1619/1 "2002-05-26T04:00:18Z")

</div>

I’ve noticed that cool little urban traffic movie you have at the bottom of some of your pages.

How do you make the random cars move from the right to the left, and at varying speeds?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 26, 2002, 9:51am UTC](https://forum.kirupa.com/t/kirupa-how-did-you-make-that-cool-random-traffic-animation/1619/2 "2002-05-26T09:51:22Z")

</div>

Hey edge,  
I used ActionScript for that. I can’t find the FLA for that at the moment (I created that animation about 6 months ago), but I am planning on writing a tutorial on this in a few weeks. Basically, I create a variable for speed and give it a random value every time it exits the movie stage. I increment the car’s current location with the random speed I assigned it. I know my explanation is quite confusing, but I hope to have a tutorial explaining this upcoming shortly 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 28, 2002, 7:15am UTC](https://forum.kirupa.com/t/kirupa-how-did-you-make-that-cool-random-traffic-animation/1619/3 "2002-05-28T07:15:40Z")

</div>

You can check that post  
[pub40.ezboard.com/fkirupa…=363.topic](http://pub40.ezboard.com/fkirupafrm19.showMessage?topicID=363.topic)
