Hi,
I`m trying to make a jigsaw type game, the user drags images and I check to see if they are at or near to the reference position for that piece. It works perfectly on one device (Samsung S8+ which I developed it on); but when I move to a device with a smaller screen I can`t get me head around how I need to manipulate the reference position.
S8+ : 1080 x 2009 (2.625 Scale)
ASUS : 480 x 854 (1.5 Scale)
Example, correct position for a piece:
S8+ = 929, 148
ASUS = 375, 81
What am I missing to manipulate these to have a set reference point for different screen sizes?
UPDATE:
The closest I can do is:
[Reference point X] / [screen X] & [Reference point Y] / [screen Y]
But that's giving me an error of -3.17% in X & 2.33% in Y, I could possibly work with that but is there a better way?
I`m trying to make a jigsaw type game, the user drags images and I check to see if they are at or near to the reference position for that piece. It works perfectly on one device (Samsung S8+ which I developed it on); but when I move to a device with a smaller screen I can`t get me head around how I need to manipulate the reference position.
S8+ : 1080 x 2009 (2.625 Scale)
ASUS : 480 x 854 (1.5 Scale)
Example, correct position for a piece:
S8+ = 929, 148
ASUS = 375, 81
What am I missing to manipulate these to have a set reference point for different screen sizes?
UPDATE:
The closest I can do is:
[Reference point X] / [screen X] & [Reference point Y] / [screen Y]
But that's giving me an error of -3.17% in X & 2.33% in Y, I could possibly work with that but is there a better way?
Last edited: