Hi!
I've been enjoying using your framework to create a little 2D MMO - great work!
My question: Why do players who join a map appear blank to players who are already in the map?
In player.ts
I'm doing, basically:
const name = "whatever"
const player: RpgPlayerHooks = {
async onJoinMap(player: RpgPlayer) {
player.setGraphic("player-graphic")
player.setComponentsTop(Components.text(name))
}
}
When the first player joins, I see their name and graphic as expected. When subsequent players join, they see their own graphic and existing players' graphics as expected.
However, when someone joins the map, to players already in the map, the new player(s) graphics are blank. The name does appear.
Here is what it looks like from the perspective of the player already in the map (unexpected). And here is what it looks like from the perspective of the player who just joined (expected).