Jump to content

phantomburn

Members
  • Posts

    1
  • Joined

  • Last visited

phantomburn's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hello, I'm trying to make an isometric multiplayer game using the popular (and amazing) http://rotates.org/phaser/iso/ plugin. The local player has their position updated similarly to this demo http://rotates.org/phaser/iso/examples/character.htm and then sends its sprite.isoPosition to the server. The server then sends this new position to all the other players. That's the basic idea so far. My issue is that when I update these remote players' locations on the local client, they aren't smoothly updated (or even correctly updated). Currently I'm doing something like: this.sprite.isoPosition.setTo(this.new.x, this.new.y, this.new.z);And what happens is that instead of simply being placed in this new position, the sprite flies around the screen and then generally ends up somewhere out of bounds. I'm assuming this has something to do with the physics engine, which needs to be enabled on each player sprite so I can run collision checks. Is there a way to keep the physics system enabled on these remote player sprites while also programmatically setting their position? Thanks for any help.
×
×
  • Create New...