This demo shows how you setup a system to handle custom packets between the server and clients and call code on the client-side when running a game in multiplayer mode.
This is a demo project showing how you can change the direction of a player with the position of the mouse and fire projectiles at the angle of the mouse relative to the player.
Making your player mob change angle based on your mouse position is pretty simple. The following code will add such a feature to your project.
onMouseMove(pDiob, pX, pY)
var x = (this.mob.xPos - this.getScreenPos().x) - pX
var y = p ...
Basic code to allow you to add draggable interface elements to your project. Any interface element with the <b>isDragEl</b> variable set to <b>true</b> like in the code below will be able to be dragged around the screen.