How to change text in phaser

how can change text in Phaser.GameObjects.Text. When one people join room no change text and i console text result is “(1/5)”, when second people join room object text change is :"(1/5)" and i console result is: “(2/5)”. i can’t understand, can anyone help me…0

If quantity is your Text object you should call


instead of

quantitiy.text = text;


1 Like

Thank you very much. I have use quantity.setText(text); but nothing change. Everything still like that two user join room but It show one user in room :disappointed_relieved: