display image where i touch

Hi there,
I want to know how to display an image ( like drawing a point ) where i touch. Thanks from now… [import]uid: 60139 topic_id: 10023 reply_id: 310023[/import]

Hey there :slight_smile:

I’m not totally sure what “like drawing a point” means in this case, however it is possible to display an image where you touch.

Something like this should work (not tested);

[lua]function papo (event)
local myimage = display.newImage (“myimage.png”)
myimage.x = event.x
myimage.y = event.y
end[/lua]

Then add the listener to your background, at least while testing :slight_smile: [import]uid: 52491 topic_id: 10023 reply_id: 36647[/import]