Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Technocrat on Sat 22/05/2010 10:19:56

Title: [SORTED]Whoa! Freaky colours of Drawingsurface sprites...
Post by: Technocrat on Sat 22/05/2010 10:19:56
My game started as 16bit. Using different kinds of sprites as tiles, it would draw an entire room as a landscape, and work fine and dandy - it looked like this.

(http://i116.photobucket.com/albums/o33/Nedraed/2.png)

So far, so good. But then, when I upped the colours to 32 bit so I could make some of the characters partially transparent, the landscape started looking like this:

(http://i116.photobucket.com/albums/o33/Nedraed/argh.png)

It's only the stuff on the drawingsurface that's come out weird, not just the wrong colours but a little warped too. I tried reimporting the sprites, but that just changed the colour of weird. Does drawingsurface have issues at 32 bit?
Title: Re: Whoa! Freaky colours of Drawingsurface sprites...
Post by: abstauber on Sat 22/05/2010 10:31:39
Do you have a background image imported in your room? It can be black, it just has to be there.
Title: Re: Whoa! Freaky colours of Drawingsurface sprites...
Post by: Dualnames on Sat 22/05/2010 10:34:55
Nice retro feel :D
Title: Re: Whoa! Freaky colours of Drawingsurface sprites...
Post by: Technocrat on Sat 22/05/2010 10:43:34
Quote from: abstauber on Sat 22/05/2010 10:31:39
Do you have a background image imported in your room? It can be black, it just has to be there.

Indeed I do, a big black grid underlies it.


And it may look retro, but I'm trying to go for a NES feel, rather than a Sinclair Spectrum feel!


EDIT: Ah, that got it. The background thing gave me an idea, and so I reimported the background after going to 32 bit, and now the landscape draws correctly on top of it. Thanks for the inspiration!
Title: Re: [SORTED]Whoa! Freaky colours of Drawingsurface sprites...
Post by: Gilbert on Sat 22/05/2010 17:48:05
In the default room template the (black) background is a 8-bit image, and room backgrounds won't be converted even after changing the game to 16- or 24-bit, and any attempt in using Drawing Surface functions on the background would result in corrupted graphics  (I know this because I am making something at the moment and got a lot of this kind of problems).