Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: smartastreacle on Tue 21/09/2021 10:09:18

Title: object under object (solved)
Post by: smartastreacle on Tue 21/09/2021 10:09:18
Hi, I can add code if required but I think this is a very simple question that I am momentarily stumped on. I have two animated objects. One is a non player character character, let's say a clown,  the other is a radar scope. The clown is animated in one location  dancing on the spot, I can move the radar scope (a 50x50 square) around the screen using setPosition. Trouble is if I place the radar scope on the clown it appears underneath when it should be on top. Is this a zorder thing, or a enoblock? In a nutshell, if I set the radar scope at the location of the clown how can I make sure it appears on top? Hopefully this is a nice easy question for someone enjoying a croissant and a nice cup of coffee.  ;)
Title: Re: Gui under object
Post by: smartastreacle on Tue 21/09/2021 10:10:27
Sorry, the title should be object under object, in my haste I thought the radar scope was a gui.  (roll)
Title: Re: Gui under object
Post by: eri0o on Tue 21/09/2021 10:53:52
Change the property Baseline of the object of the radar scope so it's value is bigger than all positions of the object clown.
Title: Re: object under object (solved)
Post by: smartastreacle on Tue 21/09/2021 11:43:20
Fabulous, thank you, eri0o, that worked a treat. Enjoy your coffee.  (nod)