http://docs.coronalabs.com/api/event/touch/id.html
You are assigning the image to the reserved word object. So, that implies only 1 can be done right?
What if I wanted 2 balls on the screen? It appears I have problems unless I can do something like this…
local object pic1 = display.newImage( “ball.png” )
local object pic2 = display.newImage( “ball2.png” )
Then make functions like
function pic1:touch( event )
…
end
function pic2:touch( event )
…
end
Can I do that? If not, then how can you handle multiple pics?
Sorry for the multiple simple questions, I am just trying to learn as fast as possible and I have VERY limited experience with methods and classes and such. I am a C/Pro*C/Unix programmer trying to pic up new trade.
Thanks for all the help you can give me.
Thanks!