Object weirdness

Started by mozza, Thu 20/10/2005 11:46:39

Previous topic - Next topic

mozza

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?

Gilbert

Did you set the baselines of the object and the background's walkbehind areas properly ?

mozza

I'm pretty sure I did, but even so would that let the BG show through?

Gilbert

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.

SSH

Or set the object to ignore walkbehinds
12

mozza

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.

Elliott Hird

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.

SSH

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.
12

mozza

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.

SMF spam blocked by CleanTalk