Is there an auto-center positioning feature for UI elements??
Develop games in your browser. Powerful, performant & highly capable.
No, but that's because Construct2 has no specific UI elements feature.
It is easily done by events though.
ui element set x : viewportleft(0)/2
this will only work if the origin of the UI element is in it's center.
good tip
how do i set or actual check the origin of the UI element is in it's center.
in the properties panel you can set the object's hotspot to center.
also in the image editor you can set the sprite's origin wherever you want.
if it is not in the center, but top-left use viewportleft(0)/2-sprite.width/2
thats good to know.