screenlock
Use a script to set the screenlock of a screen. You can use the command screenlock(1); to lock a screen and screenlock(0); to unlock it.
In the enemy's script add the line screenlock(1); in it's main() procedure and screenlock(0); in it's die() procedure. That will make the screen lock when Dink enters the screen and will make the screenlock disappear when Dink kills the enemy.
Take a look at the DinkC Reference under techniques > using screenlock. Find it in the 'develop' folder.
Also take a look at some of the enemy scripts from the original game, like s7-pill.c (the .c format scripts are also in the develop folder).
Also take a look at some of the enemy scripts from the original game, like s7-pill.c (the .c format scripts are also in the develop folder).