Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This will flip the Y value of the touch
- graphicsY = screenHeight - touchY;
- // Here we add the ratio
- graphicsY = (screenHeight - touchY) * (graphicsHeight / screenHeight);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement