Currently I have setTimeout
placed on here,
Which activates after the curtains close.
The curtains close after clicking the exit button,
Which appears on the screen after the curtains have opened.
https://jsfiddle.net/prcx3wyk/
function removePlayer(player) {
setTimeout(function() {
player.destroy();
}, 8000);
}
How would I be able to remove setTimeout
from the code?