How do I ask Flash to check if a variable is composite or odd? How do I ask it to check if it's a whole number or a fraction/decimal?
I'm making a racing game, and it's going to have two checkpoints, each of which add 0.5 to the Lap. It's going to look something like this:
onClipEvent(enterFrame){
if(this.hitTest(_parent.player)||_parent.laps=_whole){
laps+=0.5;
}}
Except that I don't know how to check for whole or decimal/fractions.