1 decade ago by Gulu
Hello,
I currently create my first game with impactjs and getting better and better every day.
However I have a problem with writing a name via draw over an spawned Entity.
This is what i tried:
My problem is that the name is only written above the units placed in weltmeister.html and not above entities which were spawned later.
Any hints how i could solve this problem?
Thanks a lot in advance.
Regards,
Gulu
I currently create my first game with impactjs and getting better and better every day.
However I have a problem with writing a name via draw over an spawned Entity.
This is what i tried:
this.font.draw("Enemy", this.pos.x, this.pos.y+20, ig.Font.ALIGN.CENTER);
My problem is that the name is only written above the units placed in weltmeister.html and not above entities which were spawned later.
Any hints how i could solve this problem?
Thanks a lot in advance.
Regards,
Gulu