updated phaser to version 3.51 and fixed the BC
This commit is contained in:
parent
178af22280
commit
1359fbe977
8 changed files with 22 additions and 24 deletions
|
@ -29,6 +29,7 @@ export class RemotePlayer extends Character {
|
|||
this.playAnimation(position.direction, position.moving);
|
||||
this.setX(position.x);
|
||||
this.setY(position.y);
|
||||
this.setDepth(position.y);
|
||||
|
||||
this.setDepth(position.y); //this is to make sure the perspective (player models closer the bottom of the screen will appear in front of models nearer the top of the screen).
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue