Hello All,
I am trying to do a simple educational application that display words on the screen so far so good. I can display random words using SQLite and each letter can be removed when I tap them. At this point I would like to add a function or statement that displays an image when all letters will disappear, using for loop display another word and so on. At this stage my idea is that images are stored together with words (letters) in database. Any constructive advice is welcome !
-- remove letter local function onTouch(self, event) display.remove(self) end -- display word from database local wordSpace = 150 -- space between letters local wordXPosition = 0 for i = 1, #words do puzzleWord[i] = display.newImage(words[i]..".png")-- display word from database puzzleWord[i].x = wordXPosition + (i \* wordSpace) puzzleWord[i].y = 100 puzzleWord[i].tap = onTouch puzzleWord[i]: addEventListener("tap") ) end