Hello kirupa!
I am using the following code to place characters on the screen using Blitting:
var rec:Rectangle = new Rectangle(X, Y, width_sprite, height_sprite);
var pt1:Point = new Point(0,0);
var bmd:BitmapData = new BitmapData(width_sprite,height_sprite);
bmd.copyPixels(spritesheet01,rec,pt1);
blit.bitmapData = bmd;
Everything works as it is intended to. The problem is, each character is a 300 x 300 bitmap and the game lags after I place about 6 of them on the stage at a time (while having a nice background, foreground, etc). I was hoping to get a lot more mileage out of this process in AS3.
Is there anything that I am doing wrong or that a way to improve this process so that I can have about 10 times as many characters on stage? Is it just the size/quality of the images that are the problem?
I have noticed that games like “Age of War 3” have a very large number of characters on screen at any given time. [ http://www.ageofwar123.com/age-of-war-3.html ] I had something like this in mind in terms of number of characters on stage.