Hi does anyone know how to display an object at the location of touch in a Level helper level of say 320 by 3200.
I am having problems translating the screen co-ordinates to world co-ordinates.
My player is constantly jumping up and down so this code is not working.
local screenHeight = display.contentHeight
cloud3.x = event.x
screenNo = math.round( player.y/screenHeight )
cloud3.y = event.y + ((screenNo*screenHeight)-320);
return true
end
end
Runtime:addEventListener("touch", touchListener)
The following code is keeping the player in view
if player.y < -localGroup.y + 240 then
localGroup.y = -(player.y - 240)
Thanks