Yeah, I can imagine there to be alot of false positives. Without the level checks, I get one everytime somebody goes from one level to another. So just add an onPlayerEnters() command with the original x/y ?
Like this? :
PHP Code:
function onPlayerEnters() {
this.x1 = player.x;
this.y1 = player.y;
setTimer(1);
}