Hey guys, I'm trying to add a door that can move you to another spot when you click on it. And when you want to get out, you click on it again to get out.
Here's the code I wrote up
Code:
case 6114:
if (c.objectX == 2862 && c.objectY == 10199);
c.getPA().movePlayer(2863, 10199, 0);
if (c.objectX == 2862 && c.objectY == 10199);
c.getPA().movePlayer(2862, 10199, 0);
break;
I wanted the the player to move to other side of the door once clicked on but when they want to get out, they can't and that's the problem i'm having is making them go out the door the way they came in.