Hi,
I am trying to make my way through Corona, and not being a developer or with experience on other languages, I find very difficult to understand how to progress in the examples. Could I suggest that, since lua and corona are aimed also to people that do not have a programming experience (I am coming from design), to have a more beginner area which brings you through things with a more easy logic?
I am reading programming in Lua but it is very abstract, all the example here are single screens, something that will not happen in applications… I am embarrassed to post this, since everybody here seems to be way more ahead, but there is nothing on the net that brings you logically more ahead than a lot of hello worlds…
Right now I am trying to find my way through these very simple lines:
display.setStatusBar ( display.HiddenStatusBar )
system.activate( “multitouch” )
local ui = require(“ui”)
local background = display.newImage( “openingscreen.png” )
local button1 = ui.newButton{
default = “playbutton.png”,
over = “playbuttonover.png”,
}
button1.x = 140; button1.y = 240
function button1:tap(event)
local cave = display.newImage (“cave.jpg”)
local button2 =ui.newButton{
default =“movebutton.png”,
over = “movebuttonover.png”,
}
button2.x = 240; button2.y = 160;
function button2:tap(event)
local trog = display.newImage (“trog.png”)
trog.x = 120; trog.y = 100;
end
end
button1:addEventListener (“tap”, button1)
button2:addEventListener (“tap”, button2)
But I cannot make button2 to display the image trog…it does only the over, clicking nothing else happens…
What am I doing wrong? what should I read in order to understand how to manage sequential events maybe on successive screen.
I am really sorry to bother the forum, but I am really pretty lost
Thank you
[import]uid: 8464 topic_id: 2270 reply_id: 302270[/import]