Label Layers Please

How do you change the label display order?

It would be very helpful because I am layering them to make buttons.

{"data":{"behavior":{"v":"2","nodes":[{"inputCount":4,"outputCount":4,"name":"Label","behaviorType":"logic.hud.Label2","x":-810,"y":-720,"group":"c5c570a9009b484c","id":"c85528c5dbe7b64c","text":"||||||||||||||||||||","textColor":13421772,"fontName":"mines","scale":11,"textAlign":"center","maxWidth":0,"xO":-32,"yO":-369,"pin":false,"alpha":100,"kerning":-5}],"links":[]}}}

Where is the display order in the code, I know they have display orders.

Here I managed to layer them:
Screenshot 2024-04-10 10.18.25 AM
I copied and pasted to do it, but I really want a way to layer them through the codes.

Thank you!

I don’t think you can but who knows. I may be wrong.

1 Like

To change the diplay order of a behavior, you need use “attach to object” and change the objects display order.

Thank you JR01, but I have multiple Labels in one object, and I cannot afford to use too many objects.

ya because then that will make the game lag and be slow. also can I see your game???

You can use various Label behaviors and various Display Order (sets the object layer) to achieve that with just one object.
Just have multiple copies of the same object read and trigger specific logic depending on something that is unique to that object (could be their name, or starting value or something else, and you can extract those properties with the extractor behavior)

Here is the game: Flowlab Game Creator - Level loader

It is a level editor, but it is not finished.

The object I need to layer labels for is “Tool Box”, it is in level 2.

Using Multiple Tool Boxes of the same type would be very complex because it must also follow your mouse, spawn, color, delete, rotate, move and scale other objects in the level. These would be done through messages sent to the block or blocks edited.

I could afford to make 1 extra object for the labels and leave “Tool Box” for the logic.

Thank you Samuel_Tome’_PixelPizza!

What are you trying to do? Are you having labels overlap each other? or are they overlapping/interfering with other UI objects?

I don’t think you can change the display order of the label itself, however, if they are all located in the same place, you could have their alpha set to 0 whenever a UI object is displayed overtop of it or when other labels are also shown, that way they aren’t overlapping each other.

1 Like