Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 01-30-2001, 08:09 PM   #1
Flo
Registered User
 
Join Date: Jan 2001
Location: Los Angeles
Posts: 24
Default

Can anyone lend me a hand with collisions, Im trying to have one box disappear when it hits another and Im have problems with it.
thanks
Flo is offline   Reply With Quote
Old 01-31-2001, 05:36 PM   #2
Akane
New Member
 
Join Date: Dec 2000
Location: Caen, France
Posts: 13
Send a message via ICQ to Akane
Default

there are severals way to do that
if your boxes are MCs, so use the hittest command like this (example) :

box1 and box2 are the 2 MC
______frame1 :

if (box1.hitTest(box2)) {
box1._visible = false;
}

______frame2:

gotoAndPlay (1);


this is the simplest way.
Akane is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Collision Detection. rask ActionScript 2.0 0 01-30-2006 08:58 AM
Optimizations for Collision Detection IonRod ActionScript 2.0 0 12-24-2005 03:48 AM
Collision detection problem jimboready ActionScript 2.0 3 12-11-2005 11:04 AM
Collision Detection sfhazel ActionScript 1.0 (and below) 8 08-16-2005 09:35 PM
clever collision testing emergency_pants ActionScript 2.0 6 04-25-2004 05:43 AM


All times are GMT. The time now is 04:13 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.