# Racing game advice needed

**URL:** <https://forum.kirupa.com/t/racing-game-advice-needed/216149>\
**Category:** Uncategorized\
**Created:** [February 14, 2007, 2:30am UTC](https://forum.kirupa.com/t/racing-game-advice-needed/216149 "2007-02-14T02:30:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adsmithy](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@adsmithy](https://forum.kirupa.com/u/adsmithy)\
**Post date:** [February 14, 2007, 2:30am UTC](https://forum.kirupa.com/t/racing-game-advice-needed/216149/1 "2007-02-14T02:30:51Z")

</div>

hi,

im developing a simple racing game using code posted by members of this forum. i need some advice on a few things.

1.) i want to change the starting position of the player car (to the start line).

2.) since i’ve added a title screen the AI cars have stopped working. i think its because the onEnterFrame function cannot work now that ive told it to stop on that frame, otherwise it will loop back to the title screen. how can i get around this?

3.) currently the AI cars have no collision detection. i want to use the existing collision detection that is being used for the track walls. how could i add this to the AI cars?

4.) i want to record the number of the laps the player has compeleted. after a certain amount of laps e.g. 10 the race ends and depending on whether the player has won or not produce a suitable ending screen. i already have a checkpoint to facilitate this, not sure how to code it now?

any help would be much appreciated indeed. i have hosted my .fla and .swf files externally (the .fla was too big for Kirupa hosting) for you to view. cheers. :thumb2:

[racing game.fla](http://www.filefactory.com/file/0d1924/)  
[racing game.swf](http://www.filefactory.com/file/f86894/)
