local player = Bitmap.new(Texture.new("Sprites/gundam.png"))
stage:addChild(player)
function player:onTouch(event)
print("aa");
end
player:addEventListener(Event.MOUSE_DOWN, player.onTouch)
When i touch anywhere in the screen it prints "aa" instead of only printing when i touch my player.
I tried to read some articles but its really annoying me this problem.
Can anyone help me?
Comments
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps