View Single Post
P4rr0t

JCF Member

Joined: Nov 2013

Posts: 12

P4rr0t is doing well so far

Nov 15, 2013, 04:53 AM
P4rr0t is offline
Reply With Quote
@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;
			
		}
	}
}