Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Wed 18/06/2003 23:00:13

Title: Objects behind/infront of each other ...
Post by: on Wed 18/06/2003 23:00:13
in my script i use:

ObjectOn(2)
ObjectOn(3)

works. But the problem is that i want Object 3 to be infront of Object 2, while currently its drawn behind it. Thereforce i tried:

ObjectOn(3)
ObjectOn(2)

which didnt change that situation. I was looking up for something like
SetObjectInfront(); or something, but i didnt find such.

now, how can this be solved ?

thanks.
Title: Re:Objects behind/infront of each other ...
Post by: TerranRich on Wed 18/06/2003 23:34:57
Each object has its own baseline, which is the point above which everything else is drawn behind it. Set the baseline of the object you want in the front to its apparent bottom (the bottom of the actual sprite), then set the other object's baseline to the very top (coordinate 0 or 1). This way, nothing will be behind that particular object.

:)
Title: Re:Objects behind/infront of each other ...
Post by: on Thu 19/06/2003 01:36:22
thanks ! i am beginning to like this program ;)