Does anyone know how can i make a player face a object when u click on it ? Giving rep++ for help.
Printable View
Does anyone know how can i make a player face a object when u click on it ? Giving rep++ for help.
You would use this method..
Make it face the objects x and y coords.Code:public void turnPlayerTo(int pointX, int pointY){
FocusPointX = 2*pointX+1;
FocusPointY = 2*pointY+1;
updateRequired = true;
}
Tryed, got an error :Code:case 2513:
server.model.players.Player.turnPlayerTo(2555, 2555);
c.fireProjectileObject();
break;
}
http://i44.tinypic.com/15o79mf.png