Sure I can over lay an icon usr.overlays += 'test.dmi'
But what about icon states? My game is starting to have to many seperate files for overlays.. I want to trim this down.
Please help. Is it possible to overlay an icon state?
ID:163140
![]() Oct 5 2007, 7:20 pm
|
|
![]() Oct 5 2007, 11:11 pm
|
|
Overlays could be a pain in the ass in the future so get the crashLays by Crashed for simpler use of overlays.
|
mob |
Hellonagol wrote:
Please help. Is it possible to overlay an icon state? Yep. It's even possible to put overlays at different "layers". For instance, you can make armour appear over your shirt. overlays+=image(icon='icons/myicon.dmi',icon_state="armor.dmi',layer=-1) Look up FLOAT_LAYER. And use images to add/remove overlays. -- Data |
well i use this for my overlays...
mob that's about it... hope you like it! :) |
Jman9901 wrote:
well i use this for my overlays... Your method is wrong -- creating a new /icon object just to add an overlay is a very bad habit; it will cause the game to open the icon file for editing. Opening an icon file for editing takes up way more CPU than opening an icon file for reading, like the passive /image type does. Also, your /icon type will not allow you to layer your icons using the method I described above, nor will they allow you to use pixel offsets with your icons very easily. -- Data |