1 decade ago by matthewjames
Hello all, I am having issues figuring this one out. I am trying to center the players name over their player entity in MMO-like fashion. Here is what I have so far:
I am using the camera plugin which I think is what is throwing it off. The text is where it should be until the entity hits the outer bounds of the cameras trap and the level starts to scroll and as the entity progress forward, the text outruns the player.
Any ideas?
this.font.draw($("#playerOnePage").text(), this.player.pos.x, this.player.pos.y-300, ig.Font.ALIGN.CENTER);
I am using the camera plugin which I think is what is throwing it off. The text is where it should be until the entity hits the outer bounds of the cameras trap and the level starts to scroll and as the entity progress forward, the text outruns the player.
Any ideas?