- letterbox scale
- Viev port is bigger that layout size (it fix mobile size problem)
So I cant center object
Its not working
IconTitle.X = (viewportright("HUD")-viewportleft("HUD"))/2
I need center in the view port, because its bigger than layout.
Develop games in your browser. Powerful, performant & highly capable.
(viewportright("HUD")-viewportleft("HUD"))/2
The correct expression is:
(viewportright("HUD") + viewportleft("HUD"))/2
i.e. plus, not minus. You want the value half way between the two, not half the difference.