Draw Images on the screen

Hi
Im trying to draw things using the touch function on the screen. I kinda made it possible by using this code

function draw(event)
local text2=display.newText(".",event.x,event.y,“times new roman”,18)
text2:setTextColor(0,0,0)
end
Runtime:addEventListener(“touch”,draw)

its not very smooth and i don’t know any other way to display on the screen and it also takes a lot of memory cause every time im creating a new variable

does anyone know any other easier ways to plot on the screen

thank you
[import]uid: 115284 topic_id: 25507 reply_id: 325507[/import]