Hello, I am trying to add a tween to my text that modifies its fontsize. I looked around in the documentation and didn’t find anything that would help me. Is there any way I can do this? I don’t want to use bitmaptext.
Try a counter tween with an onUpdate
callback, calling setFontSize()
.
1 Like
How do I make it a counter tween?
this.tweens.addCounter({
from: 64,
to: 12,
onUpdate: function (tween) {
text.setFontSize(tween.getValue());
}
});
1 Like
Thank you!
1 Like