Attention | Topic was automatically imported from the old Question2Answer platform. | |
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
duke_meister | 2018-07-07 23:44