Hi,
I have seen how random pictures can be displayed by shaking.
How do you loop through one image at a time by tapping a button?
I’ve picked up pieces but do not know how to use the loop statement
local button = display.newImage(“image_selector_button.png”, 250, 410, 0, 0)
local plate = {“image1.png”, “image2.png”, “image3.png”};
function button:tap( event )
*** how do you loop through those images with each tap? *****
–local dial = display.newImage(“compass_dial2.png”, 5, 125, 0, 0)
end
button:addEventListener( “tap”, button )
Please advice [import]uid: 3482 topic_id: 495 reply_id: 300495[/import]