i have started to construct a racing game. i have the basic components, but i cant get it to that when u complete the 3 laps if goes to a new scene or frame stating that u won.
the coding for the lap counter looks like this:
onClipEvent (enterFrame) {
if (this.hitTest(_root.car) && once != 1) {
_root.lap++;
once = 1;
}
if (!this.hitTest(_root.car) && once == 1) {
once = 0;
}
}
