Objects behind/infront of each other ...

Started by , Wed 18/06/2003 23:00:13

Previous topic - Next topic

gunti

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.

TerranRich

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.

:)
Status: Trying to come up with some ideas...

gunti

thanks ! i am beginning to like this program ;)

SMF spam blocked by CleanTalk