I have started coding with Gideros, but now the main problem occurs.. I'm trying to move from scene1 which is the main scene with play button to scene2 where you have to select levels.. I tried to implement code by myself, but what I have done so far none of my codes worked..
I know, I'm a bit lazy and I could handle this by myself, but to have better future I'm asking 2 questions:
1. What's wrong with my code?
2. What's the most easiest code to move from scene1 to scene2?
local i = require("i")
local function gobutton2(i)
storyboard.gotoScene( "yellow" )
end
local btme = ui.newButton{ default="button1.png", over="button2.png", onRelease=gobutton2 }
btme.x = display.contentWidth / 2
btme.y = display.contentHeight / 2
Comments
Likes: simwhi, antix