Hi muties,
I'd like to ask for an advice. I am currently in the process of redesigning game interface and the new interface uses a lot of semitransparent elements with opacity animation. As "windows" are quite limited in WME, I have an extra GUI layer I include in every scene using this interface. So far good. But I am facing the following problem: I'd like to preset AlphaColor to value lower than 255.
Things I've tried:
1, (currently implemented) in scene_init.script I include special universal file which manually sets the individual opacity. This method is very clumsy and the only way how to test the opacity levels is through constant compile'n'test.
2, creating a sprite with one frame for each element - this method in theory works, but as soon as sprite is assigned to entity, you can't no longer simply set opacity through AlphaColor. You have to for every entity query SpriteObject, Frame and Subframe to finally assign the opacity. Since WME has no decent nesting, it's too ugly.
3, I tried using custom attribute and set AlphaColor there. This is totally weird - as soon as you put as custom attribute known object parameter, it attempts to be set (Scale for example) but you never again get to this information apart from the .scene file. Scale works (the object changes size), but AlphaColor doesn't.
4, I considered using custom Attribute (alpha eg.) and then writing universal loop which would attempt to set these values by looping through all Scene entities. As some of the scenes are entity heavy, I've decided against it.
Any other ideas?
Thanks!