Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: mozza on Fri 06/01/2006 11:15:51

Title: Ojects behind walkbehinds [SOLVED]
Post by: mozza on Fri 06/01/2006 11:15:51
I have a hotspot that is also a walkbehind and when you interact with the hotspot an object is supposed to become visible on top of the hotspot. I have just used a object.Visible = true code to make the object visible, but the object is behind the walkbehind. How can I make the object be drawn on top of the walkbehind?
Title: Re: Ojects behind walkbehinds
Post by: monkey0506 on Fri 06/01/2006 11:48:59
You simply use the Object.IgnoreWalkbehinds (http://www.adventuregamestudio.co.uk/manual/Object.IgnoreWalkbehinds.htm) Property.  Just set it to true.
Title: Re: Ojects behind walkbehinds
Post by: Ashen on Fri 06/01/2006 11:59:09
Or, change the object's baseline, to be below the Walkbehind's. I personally dont like using IgnoreWalkbehind if it can be helped as it ignores all walkbehinds - which isn't a problem if it's a stationary object, I admit, it's just a preference.
Title: Re: Ojects behind walkbehinds
Post by: mozza on Fri 06/01/2006 21:32:48
I used object.IgnoreWalkbehind in the Before Player Enters Screen section of the script and it works fine. It was a stationary object and there is no problem now.
Thank you both. ;D