1 decade 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:
Any clue? Should I use a separate font? Any other way to achieve this?
Thanks
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