Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: lsb on Mon 20/04/2009 04:10:57

Title: Getting Character Animation to Occur behind an Object (SOLVED)
Post by: lsb on Mon 20/04/2009 04:10:57
I'm having trouble getting an animation to happen behind an object. I have a character standing in front of a car. if he interacts with the hood, the hood pops open. when he interacts with it again, his arm reaches up and the hood goes back down.  When the animation happens, his arm shows up in front of the hood instead of behind. I've tried setting the baseline but the arm still shows up in front, yet if i leave the hood up and walk around it the character is shown behind it like it should.

Is there some setting i'm forgetting to do? any help would be appreciated!
Title: Re: Getting Character Animation to Occur behind an Object
Post by: RickJ on Mon 20/04/2009 16:00:58
If the object's baseline is higher on the screen than the base of the character then the character is drawn in front of the object.  You may want to look into programatically changing the baseline using the Object.Baseline property of the hood.
Title: Re: Getting Character Animation to Occur behind an Object
Post by: lsb on Tue 21/04/2009 09:24:00
okay, thanks, that did it :D