Replies: 1 comment 2 replies
-
func _applied(dealer, receiver, status):
super(dealer, receiver, status)
receiver.add_effect(stun)
# To call another function:
# super.some_other_function(some_param)
This was changed in 4.0.beta as well. Multi-level calls must now be done explicitly with |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For now only some of the internal methods are called in all parent classes
If you want to do the same with your own, you have to write boilerplate code like this:
It would be cool to have something like
extra
keyword which does the same with less code:Thoughts?
By the way, the fact that some of the methods are being called automatically is a source of big confusion. Spent 2 hours to figure out why my method doesn't get called in the parent class, because I was doing the same only with
_physics_process
before and thought it works the same way with all methodsBeta Was this translation helpful? Give feedback.
All reactions