How can i make "Time indicator" on screen and make game screen fit for any screen?

i have more problem again (again). so i need to put Time indicator show on screen but it’s not quite match up with my screen and i use “Extend width or height to fill screen” so i don’t know how to fix it, and i’m so worry about when others people play my game i don’t know it will fit on theirs screen or not…

One way to combat that

Is as stupid as scale it with screen
And same thing will work for whatever UI elements you have
So HP bars Score text and all other crap you can think of

For example

NO CONDITION

Action
Change Text Width set to CameraWidth()/15
Change Text Height set to CameraHeight()/10

That 15 and 10 you need to adjust yourself
I personally find it stupid and if i make game i simply leave in options setting for player to change zoom on UI layer
I simply set zoom on UI layer to some variable and make slider to adjust it so any1 can have it as big/small as they see fit and not as i imagined it

HOWEVER
If you really need it
And on top of what i told you to do you also want to detect if its landscape or portrait display

You use condition called COMPARE TWO NUMBERS

CameraWidht() is GRATER than CameraHeight()
Action
Change Text Width set to CameraWidth()/15
Change Text Height set to CameraHeight()/10

CameraWidht() is LESS than CameraHeight()
Action
Change Text Width set to CameraWidth()/10
Change Text Height set to CameraHeight()/15

You can test that crap by launching preview and simply resizing preview window as you would change size of folder window on your PC

thx again Z imma try it :]

1 Like