I have:
//Left Key
lKeyEv =
"{
if (global.pause = false){
sprite_replace(spr_cm,global.cmL_spr,2,0,1,0,0,0,0);
x-= global.cmSpeed
global.curDir = 2;
}
}"
//Right Key
rKeyEv =
"{
if (global.pause = false){
sprite_replace(spr_cm,global.cmR_spr,2,0,1,0,0,0,0);
x+=global.cmSpeed
global.curDir = 0;
}
}"
//Up Key
uKeyEv =
"{
if (global.pause = false){
sprite_replace(spr_cm,global.cmU_spr,2,0,1,0,0,0,0);
y-=global.cmSpeed
global.curDir = 1;
}
}"
//Down Key
dKeyEv =
"{
if (global.pause = false){
sprite_replace(spr_cm,global.cmD_spr,2,0,1,0,0,0,0);
y+=global.cmSpeed
global.curDir = 3
}
}"
and it works fine. The problem is that the speed increases every time he enters a different room.
I'm using external scripts, btw, in case that helps some.