This content has been marked as final. Show 4 replies
use a hitTest() in a loop to determine when your ball and wall make contact. when that is detected you can take any number of steps including advancing a movieclip frame (nextFrame() ), changing your ball's _x and/or _y properties and animating other objects (like your key).
Hmmmmmm... I never Used hitTest() What Does It Do Exactly? Could you show an example?
it's a movieclip method. check the help files for usage and example code under as2 lang. ref/as classes/movieclips/hitTest.
> Hmmmmmm... I never Used hitTest() What Does It Do Exactly?
Exactly what you are looking for:
Dan Smith > adobe community expert
Flash Helps > http://www.smithmediafusion.com/blog/?cat=11