Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. // This will flip the Y value of the touch
  2. graphicsY = screenHeight - touchY;
  3.  
  4. // Here we add the ratio
  5. graphicsY = (screenHeight - touchY) * (graphicsHeight / screenHeight);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement