Soory double post!
angelscript doesn't work for me this entrance/exit door and more doors, can you help me?
Code:
void onPlayer() {
if (jjEventGet(p.xPos/32, p.yPos/32) == AREA::PATH) {
canvas.drawString(
(215*32) - 4,
(85*32) - 4,
"Press UP to entrance door!",
STRING::SMALL,
STRING::BOUNCE,
1
);
canvas.drawString(
(8*32) - 4,
(8*32) - 4,
"Press UP to exit door!",
STRING::SMALL,
STRING::BOUNCE,
1
);
}
switch () {
case 10:
x = 215; //Entrance door
y = 85;
break;
case 11:
x = 8; //exit door
y = 8;
break;
}
}
}
Thanks
Last edited by P4rr0t; Nov 14, 2013 at 03:39 AM.
|