Reducing

Hey everone see i have an fla from Ed-Mack from FK
and want to reduce the code inside the fla.

All i want is the laps to work nothing else i tried reducing myself and ruined it like 60 times.
Now i know the code off by heart LOL
Can some one please reduce it.

I wish only you guys had more time to help your old buddy
BullDog
And for christmas present<:} <:}

onClipEvent (load) {
	_root.laps = 0;
	_root.lastc = 3;
}
onClipEvent (enterFrame) {
	if (this.hitTest(_root.car)) {
		if (_root.lastc == 3) {
			_root.laps++;
			_root.lastc = 0;
		}
	}
}

Merry Christmas <:}

Thanks lost.
Merry christmas to you to.

No problem :slight_smile: And thanks :slight_smile:

I noticed when any code can get reduced and when that is.
It looks alot more easy to understand

One thing i dont know what it means.

    if (_root.lastc&gt;1) {
        _root.lastc = 1;
    }

I noticed this symbol
>
And i have no idea what it is.
Can you put it in the whole sentence of what its doing in the code i gave youu.

It would help me on my Racin game

You don’t know what <B>></B> means?!?!?!?

That is like 5th grade math :-\

It stands for “greater than”. So that line of code there says

If _root.lastc is greater than 1, _root.lastc equals 1.

Here are some basic operators.

< : less than
== : is equal to
<= : is less than OR equal to
>= : is greater than OR equal to.

help | actionscript dictionary

have you ever seen it bulldog?