Well looking at it, you have two separate variables… CurrentTouch.X and CurrentTouch.x are two different things. For all Vec2,3 and 4 the object’s vairables are all lowercase (x,y,z,a).
I am also not sure about trying to set CurrentTouch.x. If I remember correctly, that can change a ton based on where you finger hits the screen. When it comes to drawing things or handling touches… I use another variable like pos=vec2(x,y) and handle it like this.
function touched(touch)
if touch.x < somenum then
pos.x=somenum
end
end
but thats just how I do things. I don’t use the CurrentTouch too much.