Issue with Baselines

Started by MrAbu, Wed 27/12/2017 03:56:00

Previous topic - Next topic

MrAbu

I'm having an issue with the main character being behind the objects and the other characters, even when he should be in front.



The red stick figure is an npc with a baseline of 5,

the green figure is the player with a baseline of 5,

the blue table and chair are an object with baseline 4.

From his placement, shouldn't the green figure be in front of everything else?

also mind the placeholder mspaint drawings.

Vincent

Red and green have the same baseline. So I believe red should have baseline 1 (near the top of the screen), blue table is in front of the red so should have baseline 2 (or any number greater than 1). Green is in front of everything it should have baseline 3 (or any number greater than the blue baseline).

dayowlron

You really should set the baseline to be the y coordinate of where the object meets the floor. If you don't then your character is going to always appear in front of it when it should be behind it.
Pro is the opposite of Con                       Kids of today are so much different
This fact can clearly be seen,                  Don't you know?
If progress means to move forward         Just ask them where they are from
Then what does congress mean?             And they tell you where you can go.  --Nipsey Russell

Kweepa

#3
Yes, for this scene you will need to split the walkbehinds into these groups.
Place the walkbehind for each group on the y coordinate of the 'corner' where the player character begins to go behind the object.
I'm not sure what art style you're going for but for a scene like this you'll want to draw the scene and walkbehinds in a paint package with layers (so you can line up the outlines easily).
Still waiting for Purity of the Surf II

Snarky

If the tables and chairs are an object there should be no need for a walkbehind. Objects by default have the baseline at their bottom edge. As long as you don't override this, you're fine.

What you may need to do is split them into several objects (one for each table + its chairs), so that the baseline corresponds to the position of that particular table on screen.

MrAbu

Thanks guys! yeah I made all the chairs and tables one object, which caused issues, and my baselines were off too, I thought things would resolve themselves if i just left the baselines equal. Thanks

SMF spam blocked by CleanTalk