Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | stevkastt |
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:
func _on_PlayerShip_area_entered(area):
if can_get_damage and !area.get_collision_layer_bit(4):
Input.vibrate_handheld(500)
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.
Hi,
I have the same issue. Not high on my list, so I’ve commented to see if anyone else replies.
I would have thought vibration would be a built in thing.
deaton64 | 2020-05-08 23:04
Well, it could be a good thing to integrate in some games, sure it is not that important for the most. Les’t wait.
stevkastt | 2020-05-09 09:07