Hello. Thank you for reading.
Can anyone please give me a solid way of using a sprite sheet as a button?
I already tried to create the sprite which works, then add -
myDispObj:addEventListener ( “tap”, myFunction )
I am encapsulating this within the storyboard api, so when user taps myDispObj, myFunction does this -
local function myFunction(event)
storyboard.gotoScene ( “level”, {effect = “slideUp” } )
return true
end
So far, the above does not work. I just want a practical sample that uses a sprite as a button within the storyboard api.
Thank you for any help.