Have added a vibration button but how to stop it

I have create a app where I have added a vibration feature.
If someone click button 1 it’s started vibrating but the problem is that how I can stop it from vibration.
I need to stop the vibration if someone clicks button 2. But it’s not working
Can someone help me the blocks
I used sound component for vibration

2 Likes

I do not believe there is an option for that, maybe this extension might help

https://community.thunkable.com/t/free-djvibrate-extension/69682

But this extension doesn’t have the blocks which I need..
Anything else which might help me

Try using a clock component to replicate above’s block procedure

2 Likes

I’m facing the same problem. I’m not able to stop on button click

I tried @dora_paz method and it works perfectly.

If you’re looking for continuous vibration, this is the way to go.

1 Like

That will reduce it’s vibrator rate. Right? According to the function @RaYzZz

Each tick of the Clock is managed by the Timer Interval in the case of Dora 2000 milliseconds (2 seconds) therefore the Clock.Timer (if Timer Enabled = true) every 2 seconds will execute the blocks inside it in this case it will perform a vibration for 200 milliseconds (0,2 seconds) obtaining an intermittent vibration.
In my example the interval timer is set to have a tick every 100ms and the vibration duration is set to 100ms obtaining a continuous vibration.
Your request is to reduce the intermittency of the vibration so simply reduce the Clock Timer interval.

I remain available for any clarification.
Happy :kodular:oding

1 Like

Btw working thanks but not working with sound which I added. It was showing error.

Show the error :face_with_monocle:

1 Like