i make game car go and stop using as3 but i dont know make score if MC stop in x position and make score..
somebody can help me?
Something like this (this was rushed):
Code:
var endPoint:Point = new Point(0, 0); //change those coords to your finish line
then in an enter_frame event handling function:
if (Point.distance(endPoint, carMovieClip) < 50) {
//trigger code here to complete the race etc
}
but in my game there is no finish line ..
such as the reaction of the brake pedal before the collision occurred when the car is running (this.x + = 10; and produce a score of X position when we click stop Btn ..