Man, your a generous person for taking the time. Thanks so much. Yes, it kind of makes sense considering I don’t speak code talk yet…but I do get the concepts. As I get more familiar with coding, this language will make sense as I read it. It’s like I’m reading English but it’s not quite making sense…yet.
Just one thing, I got an error message regarding the setFillColor saying "Attempt to call method ‘setFillColor’ (a nil value). So I just took that part out and what showed up on the screen (both iPhone and iPad) is all the words bunched together. So, I spaced the x values so that each word looked like it was part of the same sentence. (I wonder if there’s a kind of spreadsheet style where I can “fill-in” the boxes with the necessary words so it won’t take so much time spacing out individual words.)
Next, I took the EventListener you wrote and copied and pasted it for the word “my” and everything worked great. When I tapped Hello the hello audio played…when I tapped “my” the my audio played!
Also, I noticed with the EventListener part that says hello:addEventListener(“tap”, playhellosound) it’s not necessary to write it playhelloSound with a capital “S” since that’s how it’s written in Table part. It worked just fine with the small “s”. I didn’t know coding could change caps and small letters so freely.
Thanks again! What a community! I’m not used to people helping so freely. I appreciate your help!
local group = display.newGroup();
local hello = display.newText( “Hello!”, 40, 240, “Times”, 26 )
local my = display.newText( “My”, 100, 240, “Times”, 26 )
local name = display.newText( “name”, 150, 240, “Times”, 26 )
local is = display.newText( “is”, 190, 240, “Times”, 26 )
local gg520 = display.newText( “GG520”, 245, 240, “Times”, 26 )
group:insert(hello)
group:insert(my)
group:insert(name)
group:insert(is)
group:insert(gg520)
helloSound = audio.loadSound( “Hello.mp3” )
mySound = audio.loadSound( “my.mp3” )
nameSound = audio.loadSound( “name.mp3” )
isSound = audio.loadSound( “is.mp3” )
GG520Sound = audio.loadSound( “GG520_01.mp3”)
local function playhellosound()
audio.play(helloSound);
end
hello:addEventListener(“tap”, playhellosound)
local function playmysound()
audio.play(mySound);
end
my:addEventListener(“tap”, playmysound)