I'm having trouble with my wave system, where after an enemy dies it is supposed to clear itself. However, it claims that the variable the setInterval is assigned to is "not defined."
I have included my .c3p here. drive.google.com/file/d/1gNQJnkR3MTZL38GfdTDezX6ycC7R2VPh/view