Project , screen types problem

(DavaX Technology) #1

So i creating a project that shows where i am on map to other players

So some random gaming map in canavas
And ball

How it works
I muve the ball on canavas and every 1 secound it uploads ball cordinates x,y to firebase
Other players get my cordinates from firebase (get value ) and ball is set there ,so it shows where i am

THE PROBLEM IS I THINK , phone screen sizes are diffrent so so the ball is not exactly where it should to be
So it is like 2cm left ,… .or 1 cm down ,…

Is possible somehow to fix that ??

#2

Why dont you use google maps?

(DavaX Technology) #3

No ? :smiley:

it is gaming map like this

and i wonna show to other players my position in game , not position in real life :slight_smile:

#4

Looks like the map from GTA San Andreas :joy::joy::joy:

What about to set the points in percentage?
Then it doesnt matter which screen size the user have

4 Likes
(DavaX Technology) #5

i youst posted random map to show xD

Can you please show me some block , how you mean … , set this percentage points

#6

Iam away from computer.
Maybe someone else can help you

(DavaX Technology) #7

BadBoy :slight_smile:

I hope someone will help me

And Mika , is it possible to zoom in ,canavas or picture ?

(:)) #8

Explore the blocks. You will find it

(DavaX Technology) #9

Yes i found out zoom ,. :smiley:

Now i need this
" What about to set the points in percentage?
Then it doesnt matter which screen size the user have"