diff --git a/src/Space.ts b/src/Space.ts index eaff4861..75af7003 100644 --- a/src/Space.ts +++ b/src/Space.ts @@ -67,7 +67,7 @@ export abstract class Space { let player:IPlayer = (typeof p == "function") ? { animate: p } : p; let k = this.playerCount++; - let pid = this.id + k; + let pid = player.animateID || (this.id + k); this.players[pid] = player; player.animateID = pid;