PDA

View Full Version : .bitmapData and copypixel [AS3]


LivestockTony
08-04-2008, 02:41 PM
This might be a bit of a silly question, since the first one is doing what I want it to, but are these statements equivalent?

Player.bitmapData.copyPixels(PlayerArray[PlayerAnimCounter].bitmapData, PlayerRect, OriginPt);



Player.bitmapData = PlayerArray[PlayerAnimCounter].bitmapData


Player Rect is just a rectangle the size of the player's bitmap, and OriginPt is a point defined as (0,0).

The game I'm writing atm would have been a one-day project had I not made a mistake with array referencing, and now I'm a bit gun-shy. :rolleyes:
-TF