I am making a game for android and I want the phone to vibrate when the player is beaten but I get this error:
Invalid call. Nonexistent function 'vibrate_handheld' in base 'InputDefault'.
My code to when the player is beaten is the next:
if can_get_damage and !area.get_collision_layer_bit(4):
can_get_damage = false
I did follow this thread to get the code I needed to use and the docs to test it, but I don't get more information about this problem.
In advance Thanks for your help.