hey guys... im back from holidays!!! i also got my own computer now so i can do flash stuff without clogging this one up - i havnt got an internet connection yet tho. neway im still trying to get that timer working... finish line script
Code:
onClipEvent (load) {
_root.laps = 0;
_root.lastc = 3;
_root.bestlapt = 10.7;
_root.lastlapt = 0;
start = false;
}
onClipEvent (enterFrame) {
if (start) {
_root.elapsedt = Math.round((getTimer()-start)/100)/10;
}
if (this.hitTest(_root.supercar)) {
if (_root.lastc == 3) {
_root.laps++;
_root.lastc = 0;
if (start) {
_root.lastlapt = Math.round((getTimer()-start)/100)/10;
if (_root.lastlapt<_root.bestlapt) {
_root.bestlapt = _root.lastlapt;
}
}
start = getTimer();
}
}
}
3rd checkpoint
Code:
onClipEvent (enterFrame) {
if (this.hitTest(_root.supercar)) {
if (_root.lastc == 2) {
_root.lastc = 3;
}
if (_root.lastc>3) {
_root.lastc = 3;
}
}
}
2nd checkpoint
Code:
onClipEvent (enterFrame) {
if (this.hitTest(_root.supercar)) {
if (_root.lastc == 1) {
_root.lastc = 2;
}
if (_root.lastc>2) {
_root.lastc = 2;
}
}
}
1st checkpoint
Code:
onClipEvent (enterFrame) {
if (this.hitTest(_root.supercar)) {
if (_root.lastc == 0) {
_root.lastc = 1;
}
if (_root.lastc>1) {
_root.lastc = 1;
}
}
}
there is the code - i dont know why it doesnt work
thanks