|
| 27 May 2016 01:46 PM |
If I have a frame with the attributes: Size: 1,0,1,0 Position: 0,0,0,0
and I have another frame inside this frame, what position would I need it to be to be exactly in the middle of the screen? I've tried 2.5 and.5, but they haven't seemed to get it exactly in the middle. |
|
|
| Report Abuse |
|
|
|
| 27 May 2016 01:48 PM |
Depends on the size of the frame, for exact middle, using the proportions rather than explicit position values, it is (1-size)/2
for instance if you're using size (.5, 0, .5, 0)
then you need position (.25,0,.25,0)
If your size was .9 then positions .05 and so on. |
|
|
| Report Abuse |
|
|
|
| 27 May 2016 01:54 PM |
Yea that's what I did!
frame is 1,0,1,0
and frame inside of it was .25,0,.25,0 and .5 but that didn't make it go in middle. |
|
|
| Report Abuse |
|
|