display image where i touch

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

@papodefrance,
have you tried looking at the sample code on code exchange? There is a lot of wonderful stuff there.

do you know how to get a touch? Assumingly that you do, and you have a touch

local function onTouch ( e )
local phase = e.phase

if “moved” == phase then
local point = display.newCircle(e.x,e.y,2)
end
end

that should draw a point where you touched and if you moved your finger on the screen, like in a drawing program.

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 10025 reply_id: 36580[/import]

do i need to get touch ( like you said above ) or did you add everything to the code you wrote? ( i know that i’m such a kite but help me please) [import]uid: 60139 topic_id: 10025 reply_id: 36582[/import]