I have a Flash project for school and I would like to detect collision through checking to see if a pixel is black around the player. I have looked all over and I cannot seam to implement what they describe. I know that flash is capable of getting a bitmap of the screen can anyone help me?
RE: I should be shot
Posts: Location: Joined: 01.01.70 Rank: Guest
Posted on 06-11-09 02:57
I started searching again. And I found it
var scr:BitmapData = new BitmapData(stage.stageWidth,.stage.stageHeight);
var color:Number=scr.getPixel(x:int, y:int);
Sorry for the waste of DB space
Edited by on 06-11-09 02:58
Hellbound Hackers is the collective work of the staff and the community and is therefore licensed under the CC BY-NC-SA license.