Hello, I am back to annoy us all. Just kidding anyways, I will post my current code below and I would like to have a sprite (please make sprite be name) appear when I touch at the touch location. Thank you for your time.
function touched(touch)
if touch.state==BEGAN then
x=x+1
speech.say"PIZZA!"
speech.volume = 100
saveLocalData("11",x)
speech.stop()
end
end
function setup()
x=0
sx,sy=-50,-50
end
function draw()
background(0)
sprite("Planet Cute:Character Horn Girl",sx,sy)
end
function touched(touch)
if touch.state==BEGAN or touch.state==MOVING then
sx=touch.x
sy=touch.y
end
if touch.state==BEGAN then
x=x+1
speech.say"PIZZA!"
speech.volume = 100
--saveLocalData("11",x)
--speech.stop()
end
end