Problem with objects overlapping

Started by Blue, Thu 27/07/2006 16:56:36

Previous topic - Next topic

Blue

Hi all.

I have 3 objects in one room (a, b & c). They're all of equal size and they're all overlapping each other so that (a) is visible, and (b & c) behind it is invisible.

When I click on the first object (a), I want it to remove itself and turn on (b & c). - That works fine too BUT for some reason it is always (c) (the end image) that lies on top of (b) nomatter what I do.

Is there some way to tell AGS in what order theese object should be?
I have not been able to find it anywhere. I have really tried a lot of different methods and for a time I thought it had something to do with one object being larger than the other and therefore dominant.

/Blue



Ashen

Object.Basline decides the 'order' of objects (the lower down the screen, the further 'forward' the object is). You can also set it in the editor. By default, it's the bottom of the object - so if your larger object is lower down, it will be 'dominant'

If this solves the problem - you should've done a forum search, it's been asked before. If it doesn't, or you've already tried it - what are the methods you've already tried?
I know what you're thinking ... Don't think that.

Blue

Thank you for the quick reply.
That did the trick  :)

I'm sorry I didn't know it had been asked before. I went through a lot of posts without finding what I was looking for.

/Blue



SMF spam blocked by CleanTalk