LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 


Prev Previous Post   Next Post Next
  #1  
Old 01-27-2007, 12:50 AM
AliveMedia AliveMedia is offline
Registered User
 
Join Date: Jan 2007
Posts: 1
Rep Power: 0
AliveMedia is on a distinguished road
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;
}
}
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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




All times are GMT. The time now is 11:21 PM.