SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top