#piece of code works when printed, but not when in an expression

1 messages · Page 1 of 1 (latest)

lone vapor
#

when is the print statement called and when is the actual code called

finite pumice
#

next to onanother in the same function

#

my bad

lone vapor
#

so it's print(get_child(card_queue[0].x).get_child(card_queue[0].y)) exactly?

finite pumice
#

this allways happens haha i spent 30 odd minutes on this on it and found the problem

#

so i was using replace_by() to replace the empty node with the actual card right?
i wasnt calling it on the empty node i was calling it on the HBoxContainer lol

#

oops

lone vapor
#

okay

finite pumice
#

sorry for wasting your time