#1, z SergioWednesday, 06. March 2013, 14:30 hodinky 12 years ago
I will continue my problem here.
I have defined an object (with image) which is not visible at the beginning (through a self condition linked in the condition properties field). When the player does something, it triggers an action which changes the condition to true and the object is visible. This works perfectly. My problem arises when the character passes in front of the object. No matter what object center I select, but the object always is drawn in front of the character.
As AFRLme suggested, I tried to recreate the object in case it was corrupted, but it is the same. Even more, I tried to play with other independent objects in the scene, but they are always in foreground.
Then I wrote a small LUA script to print the centers of the object and the character. When the problem happens the object center has a value of 537, while the character has an Y position 846. I even checked the .ved file, and in the object definition the object center is properly set, so I can't see any corruption.
Any ideas on that?
Thanks, Sergio.