Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-28-2012, 01:55 AM   #1
macdonjo
Registered User
 
Join Date: May 2011
Posts: 42
Default [AS3] difficult collision detection

So I have a monster on the stage.
I also have a character, and inside of the character symbol, a throwing knife symbol.
Inside of the throwing knife, I made a motion tweet to throw the knife each direction (left and right).
The throwing knife x and y coordinates do not change, as the knife just moves accross the symbol.
So between the monster and the throwing knive, nothing is moving.
However, how do I test when they overlap each other??
macdonjo is offline   Reply With Quote
Old 04-28-2012, 12:07 PM   #2
henke37
Senior Member
 
henke37's Avatar
 
Join Date: Mar 2009
Location: Sweden
Posts: 10,909
Send a message via Skype™ to henke37
Default

You could do the tween in code instead, this way it can react to obstacles (like say, a wall) properly.
__________________
Signature: I wrote a pair of articles about the timeline.
henke37 is offline   Reply With Quote
Old 04-28-2012, 06:19 PM   #3
macdonjo
Registered User
 
Join Date: May 2011
Posts: 42
Default

I was considering trying that. It may be the only way.. Anyone else have any thoughts?
macdonjo is offline   Reply With Quote
Old 07-31-2012, 07:34 AM   #4
jpoopdog
Member
 
Join Date: Feb 2012
Posts: 52
Default

collision detection doesnt work for movieclips which are playing, not all of the time anyway. chances are what you have already works fine, but only when the movieclip isnt playing. i had the same problem.
jpoopdog 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 On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:21 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.