How can i use width percentage and height percentage to support all fullscreen types. All screen sizes vary in different values. The defualt width and height for the game is 1000x600 but when a different person enters fullscreen their coordinates for different buttons.
Multiply coordinates by a ratio of (screen size / target size).
remember, my screen is 1336 so i do 1336/1000 and the ratio is then 1.336.
float x = origX * widthRatio;
float y = origY * heightRatio;
or
float x = origX * (width / targetWidth);
float y = origY * (height / targetHeight);