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




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-09-2004, 08:21 PM
labb labb is offline
Registered User
 
Join Date: Jan 2004
Location: uk
Posts: 25
Rep Power: 0
labb is on a distinguished road
collision detection 1 movie hit 2 help

HI ALL
i am doing a penalty shoot out game and i am struglin' with collision detection. CAN ANY 1 HELP


what i am after is if 1 movie hits two different movies at the same time do an action

THE 3 MOVIES
b = ball (ball_mc)
g= goal (goal_mc)
k= keeper (keeper_mc)

this is my code for the ball to collide with goal area

ball_mc.goal = function() {
if (this.hitTest(_root.goal_mc)) {
score goal

this works but i now want to say if b hits g and k do action

its the ball colliding into goal area and then hitting the keeper DO AN ACTION IF BOTH ARE HIT, is there a way to do this

any help will be superb! cheers


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
[ Collision Detection ]: Directions Zentu General Flash 1 10-13-2006 08:02 AM
Need help on a collision detection link, and movie clips ValveFire Game Programming 8 08-07-2005 12:45 PM
HIT TEST collision offsets MadJohn Flash MX 1 02-17-2005 08:34 PM
Frame Independent Collision Detection Canstein33 Flash MX ActionScript 2 04-18-2003 06:10 PM
preloading plankd Newbies 4 08-25-2000 11:15 AM




All times are GMT. The time now is 05:28 AM.