The Dink Network

Reply to Re: Weird issue with screenlocks.

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
September 5th 2016, 10:40 AM
spike.gif
I think what's happening is that you've got the coordinates reversed in the original script. if (&myy > 150) SHOULD activate only when you're in the bottom-half of the screen, but because of the 'feature' I mentioned, Dink's Y is actually reversed (400+ at the top, -0 at the bottom), and therefore the script works in reverse too.

However, when you enter from the left or right, the Y coordinate doesn't change between screens at all, so the script is actually working correctly.

Adding a wait(1) at the top should make it so that the screenlock only activates when Dink is at the bottom end of the screen. If you then change the if check to if (&myy < 150), it should only activate when Dink's at the top part of the screen.

If not... well, DinkC I guess.