# Car driving game

**URL:** <https://forum.kirupa.com/t/car-driving-game/114536>\
**Category:** Uncategorized\
**Created:** [June 29, 2004, 3:22pm UTC](https://forum.kirupa.com/t/car-driving-game/114536 "2004-06-29T15:22:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joso](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@joso](https://forum.kirupa.com/u/joso)\
**Post date:** [June 29, 2004, 3:22pm UTC](https://forum.kirupa.com/t/car-driving-game/114536/1 "2004-06-29T15:22:32Z")

</div>

hi…

im just having a mess around with this script i found on [flashkit.com](http://flashkit.com) for a driving car game, heres what i got…

[http://www.band-central.net/car.htm](http://www.band-central.net/car.htm)

you see the line? well i was just wondering how i’d be able to keep a count of the amount of laps done in a dynamic text box then when the number reaches 10 the car just slows down to a stand still and you lose control. then it just goes onto the next frame, i’d imagine its just a variation on the way you’d keep score i just can’t figure out how to change it ok…hope ssomeone can help thanks…

if you’d like to take a look at the .fla file, click here to download it :

[http://www.band-central.net/driving.fla](http://www.band-central.net/driving.fla)

---

<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:** [July 3, 2004, 12:54pm UTC](https://forum.kirupa.com/t/car-driving-game/114536/2 "2004-07-03T12:54:11Z")

</div>

i have one more question…

what would be the best way to get a thing like 3, 2, 1…GO!, then the controls activate and how would i do it?

thanks

---

<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:** [July 5, 2004, 8:06am UTC](https://forum.kirupa.com/t/car-driving-game/114536/3 "2004-07-05T08:06:30Z")

</div>

Probably the easiest way is to change a variable (e.g. controlOn = false) to true at the end of a clip that includes “3, 2, 1, … GO”. You then also need an if statement that enables the control script once this condition is changed e.g.  
if (!controlOn) {  
// if controlOn is false enable controls  
your existing A/S for car control here;  
};
