Skip to content

Vibration support on Godot engine for Android

License

Notifications You must be signed in to change notification settings

JavaryGames/GodotVibrate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#GodotVibrate

##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

  1. #> scons platform=android
  2. cd godot/platform/android/java
  3. #> ./gradlew build
  4. 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:

About

Vibration support on Godot engine for Android

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 89.4%
  • Python 10.6%