Author Topic: transparant inventory  (Read 5713 times)

Jam0864

  • Contributor
  • Fanatic
  • **
  • Posts: 744
    • MSN Messenger - marmalade0864@hotmail.com
    • View Profile
    • Jam0864's Content Dump
    • Email
transparant inventory
« 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.

sam

  • Fanatic
  • ***
  • Posts: 303
  • This statement is false.
    • MSN Messenger - samlancashire@hotmail.com
    • View Profile
    • samlancashire.com
    • Email
Re: transparant inventory
« Reply #1 on: 2007-01-06, 08:17:38 PM »
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  :-\

Jam0864

  • Contributor
  • Fanatic
  • **
  • Posts: 744
    • MSN Messenger - marmalade0864@hotmail.com
    • View Profile
    • Jam0864's Content Dump
    • Email
Re: transparant inventory
« Reply #2 on: 2007-01-06, 11:41:54 PM »
Yeh, thanks for the help.

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
Re: transparant inventory
« Reply #3 on: 2007-01-07, 11:28:44 AM »
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.
Edward Dassmesser

Jam0864

  • Contributor
  • Fanatic
  • **
  • Posts: 744
    • MSN Messenger - marmalade0864@hotmail.com
    • View Profile
    • Jam0864's Content Dump
    • Email
Re: transparant inventory
« Reply #4 on: 2007-01-07, 03:54:53 PM »
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.