Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: mozza on Thu 20/10/2005 11:46:39

Title: Object weirdness
Post by: mozza on Thu 20/10/2005 11:46:39
For some unknown reason when my character clicks on a hotspot which is then meant to make an object visible, the object shows but some of the background still shows over it. How can I prevent this from happening?
Title: Re: Object weirdness
Post by: Gilbert on Thu 20/10/2005 11:58:57
Did you set the baselines of the object and the background's walkbehind areas properly ?
Title: Re: Object weirdness
Post by: mozza on Thu 20/10/2005 12:01:40
I'm pretty sure I did, but even so would that let the BG show through?
Title: Re: Object weirdness
Post by: Gilbert on Thu 20/10/2005 12:22:03
Yes. The walkabehind areas and baselines are used to determine whether a character or an object whould be in front of, or behind certain portions of the background.
If you want your object be always shown in full, set that object's baseline as low as possible.
Title: Re: Object weirdness
Post by: SSH on Thu 20/10/2005 13:19:14
Or set the object to ignore walkbehinds
Title: Re: Object weirdness
Post by: mozza on Fri 21/10/2005 01:44:56
Quote from: SSH on Thu 20/10/2005 13:19:14
Or set the object to ignore walkbehinds
That might fix it. I still don't know but I'll try.
I have a bed that I want to have always shown in full but have walkbehind on one side.
I'm still open for suggestions.
Title: Re: Object weirdness
Post by: Elliott Hird on Fri 21/10/2005 10:48:53
If the bed is an object, just don't draw a walkbehind! Clear it and then try moving behind. Yes, you did just see your character automatically walk behind it. Objects auto-determine where to walkbehind.
Title: Re: Object weirdness
Post by: SSH on Fri 21/10/2005 11:29:53
Elliott is right: walkbehinds are for where things walk behind backgrounds. If you have used an object sprite for the bed, don't bother with a walkbehind for it at all.
Title: Re: Object weirdness
Post by: mozza on Sat 22/10/2005 00:24:10
I have it so that there is a bed in the background but when you interact the object turns on. I couldn't find any problems with the code but it goes weird still.