I'm brand new to programming, sorry if this is lame :) The idea of the code below is to hide the donkey by clicking its tail, then, if it is hidden, show it - also by clicking its tail. I can get click to hide working, but then cannot click to show. I wonder if someone can lend a hand, I would sure appreciate help.
local function hidedonk (event)
donkey.isVisible = false
end
local function showdonk (event)
donkey.isVisible = true
end
if donkey.isVisible == true then
tail:addEventListener ("touch", hidedonk)
elseif donkey.isVisible == false then
tail:addEventListener ("touch", showdonk)
end