# Better Idea for a delay function?

**URL:** <https://community.thunkable.com/t/better-idea-for-a-delay-function/546918>\
**Category:** Questions about Thunkable X\
**Created:** [March 31, 2020, 9:05am UTC](https://community.thunkable.com/t/better-idea-for-a-delay-function/546918 "2020-03-31T09:05:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [March 31, 2020, 10:13am UTC](https://community.thunkable.com/t/better-idea-for-a-delay-function/546918/2 "2020-03-31T10:13:37Z")

</div>

Why not use the `wait` block @rollke?

 ![Screenshot 2020-03-31 at 10.57.44](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/e/8ead0833fb12da3f445ef3bbce77177f481bfafa.png)

Obviously, with 20 buttons you’d want to create a function here instead, but these blocks work fine for me.

Here’s a demo:

> **[thunkablecompanion](https://thunk.app/w/KBKpW3y5Y)**
>
> Powered by Thunkable

* * *

UPDATE:

Here’s a quick tutorial showing how to make a full parameterised version of this:

> [@Creating a Toggle in Thunkable](http://community.thunkable.com/t/creating-a-toggle-in-thunkable-x/53574/5):
>
> Creating a Resetting Switch Something like a “normally closed” switch, in this example we’ll make a button that defaults to “off” or that can reset itself after a predetermined amount of time. The blocks below will work for any number of switches: Demo Preview for yourself here: [https://thunk.app/w/KBKpW3y5Y](https://thunk.app/w/KBKpW3y5Y)

---

_[View the full topic](https://community.thunkable.com/t/better-idea-for-a-delay-function/546918)._
