Weird things happens when walkbehinds ignoring character on walkbehinds

Started by Pet Terry, Tue 30/03/2004 17:16:51

Previous topic - Next topic

Pet Terry

Okay, so I have this room in which I have a table and a chair behind it. I put walkbehind area on them. Then I had to put a character so that it's sitting on the chair and it's hands are on the table. So I had to edit the character graphic so that I could do that and set IgnoreWalkbehinds on for that character. Now, if player character moves behind this character, result is this:



And this is how that piece of room is without the character (the walkbehind is on that chair)


Bug maybe? Or is there a better way to place that character sitting behind the table? :P

EDIT: Oh yeah, I'm using the latest beta of AGS.
<SSH> heavy pettering
Screen 7

YOke

Weird bug indeed!

If I read the image correctly the parts of the chair that are NOT walkbehinds and has the player character behind it becomes transparent?

Don't know what the problem is, but an easy fix would be to cut and paste the chair into the sitting characters sprite or turn on extra walkbehind areas that protects the character when in the chair.

Enlightenment is not something you earn, it's something you pay for the rest of your life.

Pet Terry

QuoteIf I read the image correctly the parts of the chair that are NOT walkbehinds and has the player character behind it becomes transparent?

Exactly.

The problem with your solution would be, that the character sitting on the chair isn't always there, so I need walkbehind for it. But I still could paste the chair to the sitting character sprite and then make an object of chair that appears in the room when the sitting character isn't there.
<SSH> heavy pettering
Screen 7

YOke

But as I also said, if you put an extra walkbehind that you turn on when the character is sitting in the chair you wouldn't have to waste a pecious object space on the chair. The only problem would be if the player character was standing behind the chair when the person got up...

Enlightenment is not something you earn, it's something you pay for the rest of your life.

Pumaman

That is rather a strange effect.

Can you try using SetCharacterBaseline rather than IgnoreWalkbehinds to achieve the same result as what you are after, and see if the problem still occurs?

Alynn

Or make the character sitting actually positioned in front  of the chair baseline, (so he will appear in front of the chair) at the same time with him positioned behind the table baseline... ... not sure if its possible with your setup but that is what I would do... (even though you found an interesting bug...)

Pet Terry

Thanks for the suggestions. If I change character baseline, the character is drawn behind the chair and the table, but I managed to work around it by setting the walkbehind baseline a bit higher. It works well now, I just have to modify walkable area a bit so that the main character is drawn correctly when walking on it.
<SSH> heavy pettering
Screen 7

SMF spam blocked by CleanTalk