Groups | Blog | Home
all groups > flash actionscript > january 2007 >

flash actionscript : Extremly important script


tibor29
1/21/2007 5:45:18 PM
I have planns for many games I could make but I need one single actionscript.
How can I make key or mouse controled object to touch something so it moves to
next frame. E.g car comes to end of race and after it touches the finish line
the moviclip moves to next frame.
Many thanks
kglad
1/21/2007 7:24:11 PM
tibor29
1/22/2007 9:21:13 PM
kglad
1/22/2007 9:41:29 PM
inside your loop that updates your car's _x and _y properties you could use:



if(yourCarMC.hitTest(finishLineMC)){
// do something, race is over. for example
// someMC.nextFrame();
AddThis Social Bookmark Button