Hi, I'm using A7 and Sphere. All of my panels turn white when the Sphere outdoor level loaded (they're still alright if I load them at the splash screen).
For example, the TGA Panel with alpha like this:
Will turns gray like this:
Do I have to set some flags? I've tried some but it doesn't work. Thanks 4 reading n thank you very much for replying!
Thanks mpdeveloper_B, it is defined as a panel, I tried to turn it to entity and it worked, the entity-interface displayed correctly.
But I want to re-use the Sphere's menu, which is defined as panel, the (turning gray) TGA panel will be used as the sphere's menu background, so to make them stick together well I have to use panel instead of entity.
Does anyone have the same problem and how to solve this turn gray bug? Please help me!
And I have another question ^^, if you did it and have some code that make a panel always be at the center of the screen (even if the player change resolution) please show me. Thank you!
if you did it and have some code that make a panel always be at the center of the screen (even if the player change resolution) please show me. Thank you!
Pretty simple. All you need is the panels bitmap width and height and the screen size values:
PLEASE NOTE: This is rather pseudo code and written down from the top of my head. Not sure if it works, but it should give you an idea how to solve your problem.