OK, so I’m trying to push myself to work on the GiTD thing, and I’m testing just to make sure the player’s character moves properly. Lo (and behold), it gives me a “sourceBitmapData must be non-null” error for the copyPixels call. The thing is, I’m embedding the image and assigning it to a bitmapData object exactly like I did for the last GiTD (which worked fine).
I had updated FD before working on this (actually, un- and re-install), but I wouldn’t think that would be the issue…
[Embed(source = "images/horseman.png")] protected static var horsemanGFXClass:Class;
…and in the constructor:
actorMap = (new horsemanGFXClass() as Bitmap).bitmapData;
…and the render call:
renderer.copyPixels(actorMap, actorScrollRect, at);
So I tried changing it to extend the Sprite class and adding the image directly to the screen (commenting out the lines that give the aforementioned error), but nothing appears. If I double-click on the image in the directory list on the right, it opens and shows exactly what it is supposed to show.