#Help with understanding Callables

2 messages · Page 1 of 1 (latest)

tropic prawn
#

Hi, I am trying to run a sim I found on github - it was written in Godot 3 and I am trying to convert it to godot 4 but I don't really understand the idea of Callables and why can't they be called with a string.

This is the code I have in godot 3:

    Signal.connect("play_pet", Callable(self, "play_increase_level"))
    Signal.connect("clean_pet", Callable(self, "clean_increase_level"))```
copper obsidian
#