Hello. I have a menu.lua file that has two options, and each option sends a user to a separate lua file. The code I typed below has a problem. The options disappeared from the simulator. What are some good and simple advices?
[lua]function scene:enterScene (event)
local group = self.view
function changeScene()
storyboard.gotoScene( “chapters”, “fade”, 400 )
end
chaptersBtn:addEventListener(‘touch’, changScene)
function changeScene()
storyboard.gotoScene( “piano”, “fade”, 400 )
end
pianoBtn:addEventListener(‘touch’, changScene)
–This space is for the code that should
–make the option clickable. Without it, the
–option will be useless.
end[/lua]
If you have any advices, let me know.
[import]uid: 162639 topic_id: 32619 reply_id: 332619[/import]