- Edited
I'm making an incremental game and I wanna add juice by making the text's size increase when clicked and go back down with a tween overtime. But... Even if the size in number changes I literally cannot see the size change even tho It has plenty of space to get bigger what should I do?
extends Label
var LastMoney
@onready var MoneyLabel = $"."
var FontSize = 32
func _process(dt):
var Spd = ( 6 * dt )
FontSize += ( 32 - FontSize ) * Spd
if ( Global.ShowMoney != LastMoney ):
FontSize = 40
text = Global.ShowMoney
LastMoney = Global.ShowMoney
add_theme_font_size_override( "font_size", FontSize )
print( has_theme_font_size( "font_size", "" ), " | ", get_theme_font_size("font_size", "") )