Home Tutorials Forums Articles Blogs Movies Library Employment Press

 ActionScript.org Forums [AS3] how make Score Counter with the MC position x
 Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

 08-20-2012, 01:47 PM #1 Oskil Senior Member   Join Date: Jun 2012 Posts: 121 [AS3] how make Score Counter with the MC position x 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?
 08-20-2012, 02:00 PM #2 lordofduct Senior Member     Join Date: Feb 2008 Location: West Palm Beach, FL Posts: 3,770 We need more information than that. Is this "MC" a gauge of some short? If so what is the max value, and min value? Is this "MC" text that changes to show the score? Is this a magical school bus that travels all over the world teaching us about the wonders of science and math. __________________ www.lordofduct.com - come read my blog! If you want to know how to program, take a math class, take a lot of math classes!
 08-20-2012, 02:26 PM #3 Oskil Senior Member   Join Date: Jun 2012 Posts: 121 if I click Btn(go) car this.x +=10; and then I click Btn(stop) car.stop(); how make score if MC car stop and certainly with position X.. tanks
08-20-2012, 03:05 PM   #4
mrNoddy
Senior Member

Join Date: Aug 2009
Location: London, UK
Posts: 115

Quote:
 Originally Posted by Oskil 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
}```

 08-20-2012, 09:29 PM #5 Oskil Senior Member   Join Date: Jun 2012 Posts: 121 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 ..
 08-21-2012, 07:11 AM #6 mrNoddy Senior Member   Join Date: Aug 2009 Location: London, UK Posts: 115 OK, I don't really understand what you need to do. Are you trying to get ashore for the distance between starting to stop and the car stopping?
 08-21-2012, 12:09 PM #7 Oskil Senior Member   Join Date: Jun 2012 Posts: 121 yes sir..maybe like that

 Thread Tools Display Modes Rate This Thread Linear Mode Rate This Thread: 5 : Excellent 4 : Good 3 : Average 2 : Bad 1 : Terrible

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home ActionScript Forums Group     ActionScript 3.0     ActionScript 2.0     ActionScript 1.0 (and below)     Simple Stuff (Newbies) Flash General Questions     Flash 10 General Questions     Flash 9 General Questions     Flash 8 General Questions     Other Flash General Questions Flex     Flex 2, 3 & 4     Flex 1 Extensions and Plugins     Components     JSFL - Extending Flash Desktop, Mobile and non-browser Environments     AIR (Apollo)     FlashLite / Portable Devices Development     Projectors and CDs Supporting Technologies     HTML and JavaScript     haXe     Server-Side Scripting     Flash Remoting     Flash Media Server General     Best Practices     Gaming and Game Development     Animation and Effects     Flashants Support Forum Community Boards     General Chat     Just for Kicks Challenges     Detention Flash In Action     Site Check     Cool Sites     Widgets Decommissioned     Projects and Positions CMS Forums     Announcements Board     Content Postings / Updates     Product Review Requests     CMS Technical Questions     Process Questions     Collaboration & Suggested Articles

All times are GMT. The time now is 01:50 PM.

///