Object Baseline trouble (most likely very simple.)

Started by Dzhak, Tue 30/06/2009 12:51:23

Previous topic - Next topic

Dzhak

Hello.

I have a very simple problem that I just can't seem to fix.

There is a door in one wall of my room. There is a 'Door Object' there aswell as I want the door to open when you click it, so that's all done, ok.
But, the door is always infront of my character.
I've read quite a few posts and the manual and so on, so I know that I have to set the objects Baseline higher than the characters if I want him to appear infront of the door.
But it doesn't seem to be working.
I've set the baseline right to the top of the screen (1) but he still walks behind the door.

I'm having this problem with all my objects, I have a card on a table that always appears over the character as he walks past.
Any ideas?

GuyAwesome

How are you setting the object's Baseline property?
It looks like setting it to '1' in the editor makes it revert back to the object's y coord. Setting it to '2' seems to work, however, as does setting to '1' in script. (Setting to '0' in script works as the manual says it should, too - so it's not flat out WRONG, just ... unaware of the editor's quirks :).)

Dzhak

Ah ha.
Okay thanks, I set that up okay and it works on the door.

But my card still does it, but I think I worked out why:
The table the card is on is a walkbehind area, to make the card appear on the table I had to make it ignore the walk behind.
When I moved it off the table and took the ignore walk behind comand away it worked.
Is there a way to make it appear infront of the walkbehind but behind the character?

Thanks for the help so far by the way.

Khris

Put the table's walkbehind baseline at the middle of the table's feet area. Then put the card's baseline between that and the walkable area in front of the table.


(older image, blue = walkbehind, yellow = object)

Dzhak

Sweet!

Thanks guys. I'm set.

I'm sure I'll be seeing you later with more problems.  :)

Thanks again.

SMF spam blocked by CleanTalk