#Connecting functions n stuff like that

1 messages · Page 1 of 1 (latest)

hollow coral
#

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

icy sage
hollow coral
#

now I understand it

#

now I'm calling the function rather than connecting it, no? 😅

icy sage
#

in your code, yes

hollow coral
#

I feel so stupid haha

#

@icy sage Cool pfp btw. I love the witcher's game series

icy sage
#

thanks

#

also pp sounds weird
more proper way to say it is pfp

hollow coral