View Full Version : AS3: Get sprite at particular coordinates
pcehnaids
October 16th, 2009, 02:26 AM
Is it possible to test if a sprite (or movieclip) is located at a set of coordinates? If a sprite is located at the coordinates, can you retrieve it's instance name? If no sprite is located at coordinates, can you output a value?
Sorry for the barrage of questions.
-C-
_kp
October 16th, 2009, 03:08 AM
getObjectsUnderPoint() is what you need.
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/DisplayObjectContainer.html#getObjectsUnderPoint%2 8%29
http://www.kirupa.com/forum/showpost.php?p=2110834&postcount=334
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.