Greetings, I have some code that revolves around connecting functions to a button's press and some mouse stuff(part of my tower defense journey)
But I am running into some issues. Appearantly my button's pressed functions gets fired after connecting it?
I know this because I put some prints statements. One printing "before" a line before connecting. one printing "pressing" in the connected function and one printing "after" one line after connecting the function.
It printed like this; see picture.
(Dont worry about the error. I am looking into that haha, might be the cause I dont know)
This is really annoying as its causing my game to break kinda?
Please help, here's the code