#GodotVibrate
-
Vibration support on Godot engine for Android. (https://github.com/okamstudio/godot)
-
Godot version 2.0 stable.
##How to use
-
Drop the vibrate folder inside godot/modules
-
Move the vibrate/GodotVibrate.java to godot/platform/android/java/src/org/godotengine/godot
Note: The vibrate/android.jar is taken from android-sdk-linux/platforms/android-19. You may choose to use any other api version.
###Compile
- #> scons platform=android
- cd godot/platform/android/java
- #> ./gradlew build
- The resulting apk will be available at godot/platform/android/java/build/outputs/apk
###Configure Add the following in the engine.cfg file:
[android]
modules="org/godotengine/godot/GodotVibrate"
Use them in the script:
var singleton = Globals.get_singleton("GodotVibrate")
singleton.doVibrate(200) # milliseconds
###Build the game apk From the settings of the godot engine UI:
Export->Target->Android
Custom Package (Debug/Release):
Point to the newly built apk
Permission check: Vibrate
####License MIT
###Special Mention Thanks TeamKrishna
Other plugings: