Scrolling Game Development Kit Forum
SGDK Version 1 => Help/FAQ => Topic started by: Jam0864 on 2007-01-06, 07:21:49 PM
-
Is it possible to make part of the inventory tiles transparent like you do in sprites? I've got a really good health bar I have drawn and it doesn't look nearly as good with the white background non-transparent.
-
I think there's an old thread about this somewhere...
You can't make them transparent but, in your case if it's a bar then the best you could do would be to put the bar in a tileset of it's own and size the tiles to the exact height and width of the bar, so there's no background. Another thing you could do would be to make a new layer on the map above all the other layers with no scrolling and have an opaque bar that goes across the top, bottom, or side and make the background of your health bar the same color/colors of that bar. Then have your health bar displayed above the bar...Hope that made sense, there was a lot of bars :-\
-
Yeh, thanks for the help.
-
In the Super Happy Fun Land demo, transparent inventory was achieved by using sprites on a non-scrolling layer to display inventory and either a lot of special functions or just a bit of script to determine whether or not the sprites showed up, rather than using the default method of inventory display.
-
That is a good idea but probably not worth using because I can't write script, so I'd use special functions. 25 health is the max so I'd need a lot of special functions. Also I would have to redo all the special functions on each map. I think I'll stick with Sam's idea.