Hi
I am trying a simple project which allows me to move on to the next screen using a button.
I have managed to get my splash screen (with a button), use the button to take me to screen 2, but can’t then get the button on screen 2 to take me to screen 3. When I try the same piece of code but inserting the new image, it either doesn’t work at all or skips to the last screen. Here is the first part which is working. Hope someone can help. Thanks
local background = display.newImage(“images/screen1.jpg”)
local myButton = display.newImage(“images/buttonGreen.png”)
myButton.x = display.stageWidth/2
myButton.y = display.stageHeight -75
function myButton: tap (event)
display.newImage(“images/about.jpg”)
myButton = display.newImage(“images/buttonGreen.png”)
myButton.x = display.stageWidth/2
myButton.y = display.stageHeight -75
end
myButton: addEventListener(“tap”, myButton)
[import]uid: 45029 topic_id: 9406 reply_id: 309406[/import]
