# Simultaneous operation of 2 buttons

**URL:** https://community.thunkable.com/t/simultaneous-operation-of-2-buttons/1130125
**Category:** Questions about Thunkable X
**Created:** [February 27, 2021, 3:03pm UTC](https://community.thunkable.com/t/simultaneous-operation-of-2-buttons/1130125 "2021-02-27T15:03:09Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![andreyandrievich](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/andreyandrievich/32/94386_2.png) [@andreyandrievich](https://community.thunkable.com/u/andreyandrievich)
#### Post date: [February 27, 2021, 3:03pm UTC](https://community.thunkable.com/t/simultaneous-operation-of-2-buttons/1130125/1 "2021-02-27T15:03:09Z")

</div>

Hello everyone.  
I have a problem that I can’t solve on my own, maybe someone knows the solution.

**What I have:**  
I use 2 buttons in the app.  
When I touch down button 1, action 1 is running.  
When I touch down button 2, action 2 is running.  
But if I touch down button 1 and then touch down button 2 (until button 1 is released) action 2 does not running (because button 2 does not respond to pressing).

**Question**  
How to implement simultaneous operation of buttons (is it possible)?

**The main goal:**  
The two buttons I’m talking about are the buttons for controlling the movement of the sprite (the Right button and the Left button). During dynamic gameplay, it often happens that the Player presses 2 buttons at a time and the button that was pressed last does not work. This is a problem I need to solve.

---

<div class="post-metadata">

### Author: ![sewar](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@sewar](https://community.thunkable.com/u/sewar)
#### Post date: [February 27, 2021, 4:50pm UTC](https://community.thunkable.com/t/simultaneous-operation-of-2-buttons/1130125/2 "2021-02-27T16:50:36Z")

</div>

there are several ways to press and release buttons. try experimenting with this  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/5/c51934dadc11701823049256b997faf753b1761a.png)

---

<div class="post-metadata">

### Author: ![secondaryaccount](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/secondaryaccount/32/91441_2.png) [@secondaryaccount](https://community.thunkable.com/u/secondaryaccount)
#### Post date: [February 27, 2021, 7:30pm UTC](https://community.thunkable.com/t/simultaneous-operation-of-2-buttons/1130125/3 "2021-02-27T19:30:21Z")

</div>

I don’t think Thunkable supports multi-touch so I’m not sure you can do this.

But to try, you’d set a variable to true each time touch is down on a button (and false when touch is up) and then check to see if both variables are true.

---

<div class="post-metadata">

### Author: ![andreyandrievich](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/andreyandrievich/32/94386_2.png) [@andreyandrievich](https://community.thunkable.com/u/andreyandrievich)
#### Post date: [February 28, 2021, 4:12pm UTC](https://community.thunkable.com/t/simultaneous-operation-of-2-buttons/1130125/4 "2021-02-28T16:12:57Z")

</div>

Thank you for your suggestions, but unfortunately it didn’t work.  
While the action called by button 1 is being in progress, button 2 cannot be pressed.

---

<div class="post-metadata">

### Author: ![andreyandrievich](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/andreyandrievich/32/94386_2.png) [@andreyandrievich](https://community.thunkable.com/u/andreyandrievich)
#### Post date: [February 28, 2021, 4:15pm UTC](https://community.thunkable.com/t/simultaneous-operation-of-2-buttons/1130125/5 "2021-02-28T16:15:37Z")

</div>

Thank you for your suggestions, but unfortunately it didn’t work.  
While the action called by button 1 is being in progress, button 2 cannot be pressed.

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 1:29pm UTC](https://community.thunkable.com/t/simultaneous-operation-of-2-buttons/1130125/6 "2024-11-08T13:29:11Z")

</div>


