Is there a haptic solution in defold? I was checking it out, checked the asset store, there is one but it seems not maintained and is 5 years old. Other than that I could not find any. Any help appreciated.
I assume you are referring to this:
Did you try it? I tested and it works just fine. There should be very little (none?) maintenance of something as simple as triggering a vibration on a mobile phone.
I just tried it and it works. But there is no parameter option and it vibrates like crazy in android and ios. It would be wonderful to have parameters. vibrate.trigger({pattern}, loop_index) · Issue #7 · adamwestman/extension-vibrate · GitHub is also includes same discussion but no progress I guess. It would be wonderful to have some parameters at least for duration, and if possible the degree of vibration. I would love to implement it as a open source contribution but unfortunately native code is an area where I am a total noob.
Okay my bad. For the parameter version there is GitHub - subsoap/vibrate: Alternative vibrate extension primarially for Android , it is also shown in the end of the discussion. Since it is not at asset portal was tricky to find. But this is for android. For ios there is GitHub - MaratGilyazov/def_taptic_engine: Native extension for Defold with Taptic Engine implementation for iOS which I am testing right now, it appears having a taptic script that unifies both extension would be the best.
https://github.com/Insality/defold-eva/blob/master/eva/modules/vibrate.lua this is also what insality does in his mobile modules extensions.
Ok, that’s great, there are some options then!