sure.. grin

first, what i want the function to do is to freeze the ghost for 15 sec if froze is set to one. in 15 sec, the player can eat the ghost(or while it is freezing). if the player ate the ghost, the ghost will disappear but if the 15 sec. is done, he will be visible again.
now, if the ghost has not been eaten after he freezes (or after 15 sec), he will be able to move again.
whats happening is, the ghost freezes and disappears if he was eaten and become visible again after 15 sec. my problem is, if the ghost is in freeze state and is not eaten by the player, he won't move even if 15 sec is done.

the lines under the while condition is not terminated.
i hope my explanation is clear. laugh thanks!

Last edited by carla_mariz; 02/06/11 05:00.