when an item (in my case a car movieclip) touches anothe rmovieclip (end line) it moves on to the next frame... is there a way to code that?
so
when carmovieclip touches end spot, nextframe?
please tell me?
how to code it so that
Started by: ellwilllanimator | Replies: 2 | Views: 384
May 16, 2009 10:45 AM #419075
May 16, 2009 11:50 AM #419095
On the car movieclip, put:
Change "endspot" to whatever it is your end spot is instance-named as.
Adjust the number in "_level0" to designate the depth, so if it is on the main timeline then leave it as "_level0"
In the quotation marks, put the name of the frame you want to go to. To name a frame, click it, open the properties panel, and enter the name in the correct box. It's better than numbers, because even if you change the frame order it will still work.
if (hitTest(_level0.endspot)==true) {
_root.gotoandplay("name of the desired frame");
}
Change "endspot" to whatever it is your end spot is instance-named as.
Adjust the number in "_level0" to designate the depth, so if it is on the main timeline then leave it as "_level0"
In the quotation marks, put the name of the frame you want to go to. To name a frame, click it, open the properties panel, and enter the name in the correct box. It's better than numbers, because even if you change the frame order it will still work.
May 16, 2009 12:48 PM #419107
thanks bonk. :D