i attempted to reference peng in function but i just get the same error for peng that i got for event
local function activatePengs(peng,event)
peng:applyForce(0, -45, peng.x, peng.y)
end
local function touchScreen(event)
peng = event.target
– print(“touch”)
if event.phase == “began” then
peng.enterFrame = activatePengs
Runtime:addEventListener(“enterFrame”, peng)
end
if event.phase == “ended” then
Runtime:removeEventListener(“enterFrame”, peng)
end
end