Hi,
I am trying to fade my player on or off the screen for teleporting out of a room.
The wiki is still down so I can't get access to the documentation. I believe the following should do the trick but it causes the game engine to freeze.
I am guessing that the while loop is in an infinite loop but if the setDelay function is calling the ChangeVisibility function then the loop condition should be met after fading the character out.
Anyway if someone can point me in the right direction it would be greatly appreciated.
The code is below:
visibility = 100
player = game.CurrentCharacter
function ChangeVisibility()
visibility = visibility - 5
player.Visibility = visibility
end
while (visibility >= 5)
do
setDelay(500, "ChangeVisibility()")
end