Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

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:
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

1 decade ago by Joncom

Please share your entity JavaScript file.
Page 1 of 1
« first « previous next › last »