optimize windows HUD
Hello, im learning gdscript, need some noobie help...
i got many HUD labels (food, resources, etc.) with a simple script for that window labels follow the mouse movement. The main content of the labels is in main scene. But every one of that labels have a script:
#food info i.e
position = get_global_mouse_position()
the problem is, every day i got more and more of this little scripts and it's uncomfortable having so many because sometimes I go crazy looking for one.
on the other hand, I don't know how it can affect optimization, would it be better to unify all of them in a single script?
how could I do that?