On/Off Button For Controls
Hi,
I have started a platformer style game where the character is controlled left/right by touching anywhere on either side of the screen.
There are actors in the scene that can be picked up and moved around by touching and dragging them (Although this doesn't work properly with the other left/right controls on top).
I would like to add a button on the screen that disables the left/right controls so that the moveable actors can be dragged into a new position. Then when you are done you can press the button again to bring back the controls and disable the ability to move the other actors.
How can I do this?
Any help is much appreciated!
My controls are based on these tutorials -![](https://img.youtube.com/vi/aDpe-a5H0_g/0.jpg)
The moveable actors are from -
I have started a platformer style game where the character is controlled left/right by touching anywhere on either side of the screen.
There are actors in the scene that can be picked up and moved around by touching and dragging them (Although this doesn't work properly with the other left/right controls on top).
I would like to add a button on the screen that disables the left/right controls so that the moveable actors can be dragged into a new position. Then when you are done you can press the button again to bring back the controls and disable the ability to move the other actors.
How can I do this?
Any help is much appreciated!
My controls are based on these tutorials -
![](https://img.youtube.com/vi/aDpe-a5H0_g/0.jpg)
The moveable actors are from -
![](https://img.youtube.com/vi/SFPnFSjqOmY/0.jpg)