Gamesalad not displaying a smooth gradient fill image (ie. for sky background)?
ParkGames
Member, PRO Posts: 117
Require a smooth sky background for my game. My current sky image is an 8 bit png with aprox 163 colours at 960x640 @72 dpi with a smooth gradient fill from the top (light blue) to bottom of screen (white). This image displays perfectly smooth in the creator and on ipod touch when through the Photos App, but once run in game on the ipod, the smooth gradient fill displays as a horizontal banding stripes.
I have tried various bit depths & colour counts but all result in the same output. Looking at the import .png within my Gamesalad project file shows the image perfectly yet, in game it seems to show less colours.
Does Gamesalad not support the full range of colour?
I have tried various bit depths & colour counts but all result in the same output. Looking at the import .png within my Gamesalad project file shows the image perfectly yet, in game it seems to show less colours.
Does Gamesalad not support the full range of colour?
Best Answer
-
Rob2 Posts: 2,402You need to force 32 bit rendering by including alpha/transparency. The easiest way is just to knock a little whole in your image somewhere (add a window strip !) or make a pixel have a bit of transparency!! It sounds crazy but is currently the only way without completely altering the look of your gradient.
Answers
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
Other SDKs sorted the problem many moons ago.
Also why no custom shape collision detection?
GS is still a great program and allows you create games very quickly.
Rob2 answered your question above, you need to force GS to read the file as 32bit (24bit + alpha).
All you need to do is make 1 pixel, anywhere on your gradient, at least partially transparent, so that could be a single pixel in the corner of your image being 5% transparent, impossible to detect by eye, but enough to force GS to read the file as 32bit - and for your gradient to appear smooth on iOS/iPad/iPhone.