I found this thread while learning about the differences of TAP and TOUCH. I didn’t see if there were more options. It seems that just the two is limiting.
Here’s my example…
[lua]–> Clicky Button
click6 = audio.loadSound(“click-6.wav”)
local button = display.newCircle(display.contentWidth / 2, display.contentHeight / 2, 50)
button:setFillColor(150,200,255)
function button:tap(event)
audio.play(click6)
end
button:addEventListener(“tap”, button)[/lua]
I’m making a new “Free .WAV Wednesday” article at my site. For this week’s tutorial, I thought I’d write about Corona. But unfortunately, I’m not too happy with the way things turned out.
Basically, the tutorial is making a button that plays a sound when clicked. I figure if I’m going to sell sound files for game development, it helps to show how to use the files.
In the example, I can get the sound to play, but it doesn’t work perfectly. When “Tap” is selected, the click sound is played when the touch is released. When “Touch” is selected, the sound is played when the touch is pressed, released or moved within the circle.
Maybe it’s my limited understanding of Corona, but something doesn’t seem right. Considering that the question raised by mroberti was left unanswered, I think it might be a limitation of Corona. [import]uid: 13264 topic_id: 4707 reply_id: 25796[/import]