Is there any way of directly ignore arguments passed throw a signal connection to a function?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By hinasis

For example:

// code //
var tweener = Tween.new()
add_child(tweener)
tweener.interpolate(self,“x”,0,100,1,Tween.TRANS_LINEAR,Tween.EASE_OUT)
tweener.connect(“tween_complete”,tweener,“start”)
tweener.start()
//-- --//

Obviously, it won’t call the function without errors because “start” doesn’t ask for arguments and the “tween_complete” gives it 2.
I know you can create a function “on_tween_complete”, but is there any way of do it directly?
I just use Tween as example, but it can happen in many cases.

Thanks!
Carlos

If you use the curly braces for code would be easier to read :slight_smile:

duke_meister | 2018-07-07 23:44