hi
i hope have good time
when i develop endless game, i want to show players scores and damage
but align and another code that i test their, not work
any solution?
thanks a lot…
this.damageText = this.add.text(0, 100, "damage: 2", {
fontSize: "32px",
fill: "red",
align:'left',
});
}
another try that confused me because dont worked is below:
this.damageText = this.add.text(
this.cameras.main.worldView.x + this.cameras.main.width / 2,
this.cameras.main.worldView.y + this.cameras.main.height / 2,
"damage: 2",
{
fontSize: "32px",
fill: "red",
align: "right",
}
).setOrigin(0.5, 0.5);