I’m trying to create a pixelmask from the current frame on my player’s spritemap. Everything works fine except the pixelmask is just a square the size of the frame, not the shape of the actual image.
This is in the Player entity class:
var frame:BitmapData = new BitmapData(107, 113, true, 0);
graphic.render(frame, new Point(), new Point())
var mask:Pixelmask = new Pixelmask(frame);
mask.assignTo(this);