hey guys I’m working on an project, where you can write a text in a box and if you tap on a button the text would seaked out. But now I’ve got a problem with my code ( touchfunction ). I think the touchfuction of my project is a endless slope, so if you press the button, so if you press the button the speakword() function works more then one time and speak the text two or tree … Times
So here is my code ::
function touched(touch)
if CurrentTouch.x > 0 and CurrentTouch.x < 768 and CurrentTouch.y > 380 and CurrentTouch.y < 880 then
showKeyboard()
elseif
CurrentTouch.x > 259 and CurrentTouch.x < 509 and CurrentTouch.y > 150 and CurrentTouch.y < 250 then
speakWords()
elseif
CurrentTouch.x > 700 and CurrentTouch.x < 780 and CurrentTouch.y > 874 and CurrentTouch.y < 946 then
words = ""
elseif
CurrentTouch.x > 610 and CurrentTouch.x < 690 and CurrentTouch.y > 870 and CurrentTouch.y < 950 then
words = pasteboard.text
end
end
It would be nice if somebody of you could help me with my problem that would be very nice
Thank you