@Violet CLM
Okay, it's not working my code...  can you fix my code? Thanks
And No triggers
See picture: s11.postimg.org/akpdji9lf/image.png
Code:
void onPlayer() {
if (jjEventGet(p.xPos/32, p.yPos/32) == AREA::PATH && jj[UP]) {
jjCANVAS@ jjDrawString(
(215*32) - 4,
(85*32) - 4,
"Press UP to entrance door!",
STRING::SMALL,
STRING::BOUNCE,
1
);
jjCANVAS@ jjDrawString(
(8*32) - 4,
(8*32) - 4,
"Press UP to exit door!",
STRING::SMALL,
STRING::BOUNCE,
1
);
}
if switch () {
case 10:
x = 7; //Entrance door
y = 7;
break;
case 11:
x = 214; //exit door
y = 84;
break;
}
}
}
|