0

ライブラリからのリンケージを介して MovieClip の複数のインスタンスを配置することにより、それらのインスタンスに hitTestObject を適用する方法を知っている人はいますか?

AS3 でパックマン スタイルのフラッシュ ゲームを作成しています。役に立つかもしれない良いチュートリアルを知っている人がいたら、遠慮なく教えてください。

4

1 に答える 1

0

これらの機能を使用できます

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

于 2010-09-15T00:08:26.823 に答える