Pixelmask Rotation


(reopucino) #1

Like my topic… Did any one have tutorial or code for pixelmask rotation ??

form old topic I has find one… but I didn’t save that code


(reopucino) #2

This is code…

private var pxlmsk : Pixelmask = new Pixelmask(AssestList.SMETEORID, -10, -10);
private var bmpdata : BitmapData;

override public function update():void 
{
			gambar.angle += accel ;
			var poin : Point = new Point(10, 10);
			gambar.render(bmpdata, poin, FP.zero);
			pxlmsk.data = bmpdata;
			super.update();
}