Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | ThreeSpark |
I looked online for help with this problem. I saw a solution, which was using the connect() line, and I used it when I spawned the child - Tower1.connect(“death”, get_parent(), subtract_units1()) and subtract_units1() is a function I created previously. It says “Invalid type in function ‘connect’ in base ‘Node2D (Node2D.gd)’. Cannot convert argument 3 from Nil to String.” Could someone help me?
Ok, so I solved it, but a new problem has arrived. I changed the line to
Tower1.connect("death", get_parent(), "subtract_units1")
Now the program isn’t crashing, but the function doesn’t do its job. Could someone help me?
ThreeSpark | 2018-11-05 00:08