Hiding behind an object

Started by xenogia, Wed 17/09/2003 04:42:57

Previous topic - Next topic

xenogia

Is there anyway of making a character hide behind an object?  I tried setting the baseline off the object, but the character still is in front of the object.

Gilbert

Set the baseline of the object lower, didn't it work?

xenogia

I had to set it fairly for it to work...hmmm...thanks for the advice :)

Ghost

i found it more comfortable to create a "walk behind". they need a baseline too, but can often be drawn as if they would merge somewhere in the foreground. You can put the base line to the lower edge of your screen, and that's right below the gui in most games so that the character can never "miss the line"

have a look at the secret laboratory in day of the tentacle to see EXACTLY what i'm talking about...

works best with pillars, doors, statues etc, if your "object" is to be a box or something that must be moved, it wouldn't work of course.


Isegrim

Just a small, stupid question:
how much higher are your sprites than your character?

I think that it is the bottom of the sprite which is checked against the baseline, not the bottom of the actual visible character.
Maybe that's why you have to set the baseline so low.
This post was generated automatically and therefore bears no signature.

SMF spam blocked by CleanTalk