I am using the code found here: http://developer.coronalabs.com/code/typer-way-type-text-out-letter-letter
and I have put it into a module as posted in a comment by Panc Software. I would like to be able to add a touch event to this so that the text automatically completes when the touch begins. I am not sure how to incorporate this into the module and call it from my scene. Do I have to cancel a function or timer?
Just so you can see how I am using this in my scene, the (shortened) code is here:
[lua]
local index = math.random (1, #talkTable)
local sample=talkTable[index]
length = string.len(sample)
local talk = display.newText("", a, b, native.systemFont, 16)
talk:setFillColor(1,1,1)
talk.x = screenLeft + 10
talk.y = centerY + 100
local function done() print(“I’m done!”) end
simpletyper.typer(sample, talk, 50, done) [/lua]
Thanks for any help!