Well, the basic answer is to just design your code in a way that you aren't using SPOFS, etc. on deleted sprites.
The simplest just-make-it-work solution would be to wrap those commands in an IF SPUSED(O) THEN. However, you may want to look into SPFUNC when it comes to designing more complex programs.
Yeah, thanks. I tried looking at SPFUNC before, but i didn't understand it at all, but that's because i was looking at it in someone's program
Ooooohhhh... Yeeeaaah... 🤔 And what exactly does CALLIDX do?
CALLIDX is a variable that stores the ID of the sprite that called the function.
Oh... Looks like i'm gonna use it