I need help with for loops:
So your standard for loop is this:
for i = 1 , 5 do
print( "Hello, "…i )
end
But that just prints a sequence in the terminal.
How do I merge the above code with:
local BirdY_1 = display.newImageRect( “BirdY1S.png”, 120, 120 )
BirdY_1.x = 300
BirdY_1.y = 310
So that the same image gets displayed 5 times. Logic would also say you would need to write a position equation so images don’t get stacked on top of themselves.
Thanks.
Jeremy
[import]uid: 127028 topic_id: 27277 reply_id: 327277[/import]