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

6 years ago by eka

Hi.

I'm working on animated messages for combos in my game. The idea is when a combo is triggered a message will appear that will vanish with a vertical slide animation.

I'm doing this using a custom entity in which I initialise a font and in the update I update the pos.y and the font.alpha properties, till alpha == 0 and I kill it.

The issue is that when changing this properties on this font, it also changes the properties on the font used for the HUD on the Game class.

Yes, I'm using the same font file. but in the Custom Entity I'm doing:

this.font = new ig.Font(....) // this is on the init

Any clue? Should I use a separate font? Any other way to achieve this?

Thanks

6 years ago by pattentrick

Could you post the code of your combo entity?
Page 1 of 1
« first « previous next › last »