ID:175398
Apr 27 2003, 5:51 am
|
|
I was just wondering if its possible to make a .png file showup as a HUD?
|
Apr 27 2003, 7:15 am
|
|
I think you could make an object that has a png as its icon and put that object in a hud.
|
Just incase anyone is looking for using whole pngs in huds; it cant be done.
|
In response to Maz
|
|
This reminds me, has anyone at BYOND written a Ultilites for the community that will load a BMP, GIF, PNG and break it up into 32x32 tiles?? If not this may be my first project for BYONDscape. I want to contribute something to that group.
LJR |
In response to LordJR
|
|
If you import it into Dreammaker it does that automatically for you
|
In response to Maz
|
|
It can be done, actually; it's just a little tedious to set up.
- Break the PNG file up into 32x32 tiles by importing it into Dream Seeker - Make a new HUD object for each tile (you can find out what the tiles are using the icon_states proc) and set its screen_loc to the appropriate value. You can work out where it should go by parsing the icon state name to get the X and Y co-ords of the icon state within the original PNG image. If you're wondering, then yes I have done this. It's in the unreleased version of Thieves. (Which needs a bit of culling; feature creep has introduced a whole host of bugs. The code has become so unwieldly and bug-prone that it's easier to just get rid of the problem-causing features rather than fix the bugs.) I might even make this into a BYONDscape library. =) |
In response to Maz
|
|
Woah.. all this time and I knew it did that, but never thought about using DM as a cookie cutter! Thanks dude!
LJR |
In response to Maz
|
|
Sure it can, you'd have to use icon_states, the PNG is split up before it added to the screen, and the icon_states are set accordingly ("0,0", "0,1", "0,2", etc...) just as if you were importing it to the icon editor, it would have the same icon_states both ways.
|