object under object (solved)

Started by smartastreacle, Tue 21/09/2021 10:09:18

Previous topic - Next topic

smartastreacle

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.  ;)

smartastreacle

Sorry, the title should be object under object, in my haste I thought the radar scope was a gui.  (roll)

eri0o

Change the property Baseline of the object of the radar scope so it's value is bigger than all positions of the object clown.

smartastreacle

Fabulous, thank you, eri0o, that worked a treat. Enjoy your coffee.  (nod)

SMF spam blocked by CleanTalk