Why this code do NOTHING at all when clicking the event trigger? (note that we tested with asserts and other means if the code is reaching the changes in x and y, and it is, but there is absolutely NO visual change on the screen)
local sky = display.newImage( “rafa.jpg” )
local function myTouchListener( event )
if ( event.phase == “began” ) then
sky.x = 350
sky.y = 500
end
return true
end
local myButton = display.newRect( 100, 100, 60, 60 )
myButton:addEventListener( “touch”, myTouchListener )