The Dink Network

screenlock

June 3rd 2008, 03:06 PM
peasantmg.gif
TacoVendor
Peasant He/Him United States
Get more for the peso you pay 
how do you add screenlock
June 3rd 2008, 04:05 PM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
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.
June 3rd 2008, 04:09 PM
peasantmg.gif
TacoVendor
Peasant He/Him United States
Get more for the peso you pay 
I mean for an enemy
June 3rd 2008, 05:07 PM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
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.
June 3rd 2008, 08:43 PM
dinkdead.gif
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).