Keeping character visible on top of Object

Started by dbuske, Sun 10/04/2011 22:43:54

Previous topic - Next topic

dbuske

I have a series of characters that are NPC's that are purposely put on top of photos that are objects.
Some of the NPC's are being covered by the photo object when the game runs.
It is not possible to move the NPC.
How do I keep the NPC visible on top of an object?
What if your blessings come through raindrops
What if your healing comes through tears...

Ryan Timothy B

#1
Lookup: Character.Baseline

Just set that Character's baseline 1 unit above the object's baseline.

If you were doing it by script instead of the Character's settings via the property pane, you'd do this (preferably in the before fade in function - unless the NPC is being placed on the photo mid-room):
Code: ags
cNPC.Baseline = oPhoto.Baseline + 1;


Or if the photo Object can never be walked behind, you can just set the baseline for that to zero instead of touching the NPC's baseline. oPhoto.Baseline = 0;

dbuske

#2
Thank you.  I will try it out right now.
It works well. It was not scripted, so I just changed the object photos blocking the view of the NPC to a baseline of 0.
What if your blessings come through raindrops
What if your healing comes through tears...

SMF spam blocked by CleanTalk