通过库中的链接放置多个 MovieClip 实例,有人知道如何在这些实例上应用 hitTestObject 吗?
我正在 AS3 中创建一个吃豆人风格的 Flash 游戏。如果有人知道可能有用的好教程,请随时告诉我。
你可以使用这些功能
hitTestObject(obj:DisplayObject):Boolean
Evaluates the display object to see if it overlaps or intersects with the obj display object.
hitTestPoint(x:Number, y:Number, shapeFlag:Boolean = false):Boolean
Evaluates the display object to see if it overlaps or intersects with the point specified by the x and y parameters.
http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/display/DisplayObject.html