Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | hermo |
I’m testing a game for android.
When I try to implement the vibration I get this error: the method vibrate_handheld isn’t declared in the current class.
The only thing about vibration I coud find was here
This is my code (if i remove the vibrate line it works perfectly on both windows and android):
func _physics_process(delta):
$score.set_text(str(score))
if Input.is_mouse_button_just_pressed(1):
score += 1
vibrate_handheld(500)
I know I’m doing something wrong in that last line but I dont know how to put the vibration method.
Thank you very much!