If you're using VSYNC in main loop of your program, your code will execute at about 60 fps. (Or 30 fps for VSYNC 2, etc.)
With this, you can create an accurate timer for your dead enemy sprite.
VAR DEATH_TIME=-1'set to -1 when sprite is not dead WHILE 1'main loop ...'the rest of your game's code PLAYER_ATTACK'in here, when the player strikes an enemy, it's death_time is set to 0 to signify that it's counter should start KILL_ENEMY'delayed enemy death VSYNC WEND DEF KILL_ENEMY IF DEATH_TIME!=-1 THEN INC DEATH_TIME ENDIF'increment the death timer when it is not -1 IF DEATH_TIME>=60*2 THEN SPCLR ...'clear the sprite ENDWe do 60*2 because the code executes at 60 fps and we wish to wait 2 seconds, or 120 frames, before SPCLRing.