Character besides other

Started by fiaschetta, Tue 17/06/2008 02:16:37

Previous topic - Next topic

fiaschetta

I have 3 characters, the third moves toward right but it is hidden from the second character... 
In practice he is behind the second... 
but I want he is before the secondo. How i do?

Ishmael

Tried changing their z-order? I'm not sure if I understood you right, but if I did I think that's what you need.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

monkey0506

The z-order actually is used to make characters "float". Basically their visible y-coordinate will be raised, but they will still trigger hotspot interactions. AFAIK anyway.

I think the character's baseline (Character.Baseline property in the manual) controls which character would get drawn in front.

Ishmael

Ah, ofcource. I forgot characters have baselines nowdays too. So yeah, it's that. Z-order for GUIs controlled their drawing order.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Dualnames

put this(preferably at game start or room_Load)
You want third walk behind second:
cThird.Baseline=100;
cSecond.Baseline=120;

or second behind third:
cThird.Baseline=120;
cSecond.Baseline=100;




Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Khris

Also, make sure that the characters' sprites don't have borders on the bottom. They are positioned using the bottom center, so if the sprites are cropped correctly, they should appear in the right order in the game without any extra fiddling.

SMF spam blocked by CleanTalk