how would i make it so when an object is over your player it becomes invisable and when it your player goes out from under it it becomes visable again?

i am guessing you are doing this for a roof?

first just animate alpha texture to become invisable. Then in the game logics play the ipo.

You have it play when the player is over by getting the location of the player& object in python with a certain distance. then when that distance is meet play the ipo…

if you dont really need a fade and just want it to disappear, you could use the visible/invisible logic bricks

heres a blend because i was bored =P


press right to drop down into the house, roof will disappear… then walk outside and the roof will appear again

the collision detectors just send out a message to the roof, whether it should be visible, or invisible