Jump to content

Creamy G Colin

Members
  • Posts

    29
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Creamy G Colin

  1. I'm not into client things . You could create a topic in client section in order to get all the things you need from people who are working on client. About the nick, depends where you want to get the name. If for example you want just to send a message in player when he enter in the world, you have to code in EnterWorld.java . There you can see from other lines that already exists a variable that control the player . for example in my sources this variable is called 'player'. So the only thing you have to code is -> player.sendMessage("hi");. 'player' could be named as activeChar or 'client'. Then, since you got the 'player' instance, you can get the name from the methods of this class. Usually the method is getName() but idk what you are using. so -> player.getName(); should return the name of the player.
  2. Its definitely client thing. you should handle both mouse actions . When the keys pressed together, you should send the action to server and if one of them will release then stop the action . Edit: You can take a look how the 'arrows' are working
  3. 1) not sure what you need. By instance you mean the class? 2) you can only get the location where the player wants to go. not the mouse click action itself. 3) maybe , its clearly client thing You should define what you want to do . Maybe there are other ways to do them
×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..