How does AGS handle DynamicSprite.CreateFromSaveGame (SOLVED)

Started by Ionias, Mon 23/04/2007 13:58:10

Previous topic - Next topic

Ionias

I have a custom save and load GUI in my game. It has six buttons that handle the save or load actions. I'm creating the thumbnails by sending a sprite to the button like this…

Code: ags

butSprite1 = DynamicSprite.CreateFromSaveGame(1, 60, 30); // screenshot resized 120x60 from savegame slot 1


Now when the thumbnail sprite is displayed on the GUI the image has been resized with out any anti aliasing. Is this the way DynamicSprite resizing works? Any work around that would produce a better looking 120x60 screenshot/thumbnail for my save games? I could always do what I did with Fatman and just use my own thumbnails again but that was a lot of extra work.

GarageGothic

Yes, there is no anti-aliasing of DynamicSprites, and savegame sprites generally don't look great. However, unless you need to show a big version of the savegame screenshot anywhere, you may get a better result by saving it as 120x60 to start with instead of resizing later. Use game.screenshot_height and game.screenshot_width to preset that.

Ionias


SMF spam blocked by CleanTalk