Hi all,
I have one actor for all my UI elements. I set the image for each instance with a self text attribute. That part is happy. I was setting their positions with a rule based on the work of @colander exploring aspect ratios. That part was also happy.
The unhappiness came when I realized I needed different math because I use one big scene and a locked camera that jumps around to the various 'screens' making the actors in those other screens not get placed correctly.
I essentially need better math to place these actors based on my scene size/placement within the scene/aspect ratio/something something. I'm just having trouble with the function. Anyone want to do some high level math for me?
Scene size is 1,280w X 1,136h
I have 8 'screens'. Each one is 320w X 568h (so 4 across top and 4 across bottom)
The game starts in the bottom left screen. I'm using Overscan.
This is a picture of the rule I'm using to place my UI actors.
thanks very much