Post edited because the problem was solved;
fixed problem when using 360degree movement and having problems with warping to levels via level links…(getting stuck in a black level)
if (playerx>64)playerx=64;
if (playerx<0)playerx=0;
if (playery>64)playery=64;
if (playery<0)playery=0;
I had this problem years ago and remembered that i had to do this to fix it.