Play free games online!


Go Back   The Game Homepage Forums > Development > Flash Development

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 01-28-2009, 10:10 AM
Cloud's Avatar
Gamer
Tin Can
Better than 8.92% Better than 8.92% Better than 8.92%
 
Join Date: Jan 2009
Posts: 20
Cloud is on a distinguished road
Default hittest help

i have a movie clip named circle.. when i move it and it touches another movie clip.... i go to another frame
anyone knows how to do it?????
Reply With Quote
  #2  
Old 02-10-2009, 12:45 AM
elyas10's Avatar
Gamer
Tin Can
 
Join Date: Feb 2009
Location: Adobe Shipping Center
Posts: 15
elyas10 is on a distinguished roadelyas10 is on a distinguished road
Send a message via MSN to elyas10
Default

Hey me again... im an ub0r coder that doesnt know any math...

so anyways..
lets say the other movie clip name was "wall" (no quotes).
In your actions for the movie clip "circle" copy and paste this...

onClipEvent (enterFrame){
if (this.hitTest(_root.wall))
gotoAndStop(5); // change <<<<--- dat to what ever frame.
}

if your trying to goto another scene write... gotoAndStop("Scene 2", 1);
Reply With Quote
  #3  
Old 11-15-2009, 03:43 PM
Gamer
Tin Can
 
Join Date: Nov 2009
Posts: 1
cyinruts is on a distinguished road
Default

I hope other members would love to share their great photos and experiences in this topic.
Reply With Quote
Reply

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




Please support this website by checking out our sponsors!

All times are GMT. The time now is 11:19 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2007, Crawlability, Inc.