PHP Code:
collision()
{
    while(
isAlive(self))
    {
        
self setContents(256);    
        
wait 0.05;
    }

call on spawnPlayer()