Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: FanOfHumor on Thu 21/04/2022 23:50:32

Title: (Solved)Does AGS support overlays having a baseline?
Post by: FanOfHumor on Thu 21/04/2022 23:50:32
Just what the title asks.
Thanks in advance.
Title: Re: Does AGS support overlays having a baseline?
Post by: Crimson Wizard on Fri 22/04/2022 00:09:01
It has since 3.6.0 and it is called ZOrder, just like with GUI, and overlays are sorted among guis.
Title: Re: Does AGS support overlays having a baseline?
Post by: FanOfHumor on Fri 22/04/2022 00:43:17
That's good for me. :-D
Title: Re: Does AGS support overlays having a baseline?
Post by: Crimson Wizard on Fri 22/04/2022 01:02:33
Since 3.6.0 manual is not ready yet, there's another bit of information:

Historically, there were 2 kinds of overlays: those which were always above GUI (normal speech, Display() messages) and thise always below GUI (background speech and overlays created in script).
For compatibility reasons, in 3.6.0 overlays created in script have a very large negative ZOrder (-2 billion...). This should not be relied upon, as it's just the way to put them below any GUIs and keep original behavior. If you are arranging overlays among gui or among themselves, it's better to ignore initial value, and set explicit zorder yourself to all of them.