Am I doing it wrong or is this function broken?
String fs = "myimage.bmp";
if (File.Exists(fs)) {
DynamicSprite* sprite = DynamicSprite.CreateFromFile(fs);
DrawingSurface *surface = Room.GetDrawingSurfaceForBackground();
surface.DrawImage(100, 80, sprite.Graphic);
surface.Release();
sprite.Delete();
}
This works fine in AGS 3.2.1, but in AGS 3.3 the dynamic sprite stays null and DrawImage fails.
Bitmap loading function returns error even if succeeded, so DynamicSprite is never initialized :-[.
Fixed now, will update beta soon.
Great, thanks!
Btw. just in case bmp and pcx are treated differently - please fix it for pcx is well :)