![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Ramshell |
I wonder if it’s possible to override _input(event) method.
My problem is that I have a A
class and a B
class which is subclass of A
.
The A class has the _input(event)
method implemented. And I want to change the triggering keys on the B
class. The problem is that even though I implemented the _input(event)
on B
and I don’t call the ._input(event)
, the input is still being handled by the _input(event)
of A
.
Any idea on how to solve this problem?
Thanks.
It seems that godot treats _input somehow different than it treats other functions. I solved this by calling _handle_my_own_input(event) inside _input(event), and override that custom function instead.
Ramshell | 2019-10-05 03:58