
Welcome Guest
|
#1
|
|||
|
|||
|
dot race games
Hi,
new to the forum. Looks like really helpful place. I'm trying to put together a pretty simple dot race where you simply press play and it generates a random race winner. I've been able to figure out how to do that with just having the objects move to right from left using math.random (see below). I'm wondering, though, how do I get the racing movie clips to follow a motion trail instead of just moving from left to right. Any ideas? Thanks! AJ // ON movieclip onClipEvent (enterFrame) { // Start IF statement if (_root.raceover == 0) { // ID of DOT ( change this on every dot 1-2-3 etx) id = 1; // Movement of DOT ran = math.round(math.random()*7+3); this._x += ran; // Finnish line if (this._x>500) { _root.raceover = 1; _root.winner = id; } } // Get all dots to return if (_root.raceover == 1) { // Start porition this._x = 25; } } |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I want to buy Flash games | Westech | Work/Job Opportunities | 1 | 05-29-2008 05:15 PM |
| Flash games developers wake up! | XPOGames | Game Programming |
0 | 02-18-2008 01:06 PM |
| Flash games contest | gautam2305 | Flash Games |
0 | 09-15-2006 12:31 PM |
| Flash Games and Copyright issues | john829 | Newbies |
4 | 12-09-2005 06:00 PM |
| Armor Games Contest 3 | JeremysFilms | Flash MX |
1 | 11-03-2005 09:51 PM |

Programming Languages



