Author |
Message |
Lumenesc Novice
Age:36 Gender: Joined: Jun 19 2003 Posts: 58 Location: Texas Offline
|
Posted: Thu Jun 19, 2003 6:05 am Post subject: center coords for screenobjects |
|
|
|
|
im trying to find the coords that would center on the screen(centered on all screen sizes) so that it looks like something is happening to ship.
I've tried c-0,0(just gives me mid-top)
and since someone told me to, c,c though that didnt even build
thx if you can help _________________ Are you sure this questoin involved an answer? |
|
Back to top |
|
|
Doggeti Server Help Squatter
Age:39 Gender: Joined: Jan 12 2003 Posts: 297 Location: Germany Offline
|
Posted: Thu Jun 19, 2003 6:19 am Post subject: |
|
|
|
|
Well, in c-0 you dont need to use - I think.
If you want to have middle of screen c0,c0 should do it, not only c,c. |
|
Back to top |
|
|
SuSE Me measures good
Joined: Dec 02 2002 Posts: 2307 Offline
|
Posted: Thu Jun 19, 2003 6:33 am Post subject: |
|
|
|
|
c-1/2width,c-1/2height
so, if you had an image 300 pixels wide and 700 pixels high, you'd use...
c-150,c-350
since 1/2 of 300 is 150 & 1/2 of 700 is 350 |
|
Back to top |
|
|
Lumenesc Novice
Age:36 Gender: Joined: Jun 19 2003 Posts: 58 Location: Texas Offline
|
Posted: Thu Jun 19, 2003 4:45 pm Post subject: |
|
|
|
|
ohhhh thanks |
|
Back to top |
|
|
SuSE Me measures good
Joined: Dec 02 2002 Posts: 2307 Offline
|
Posted: Thu Jun 19, 2003 6:14 pm Post subject: |
|
|
|
|
btw if you want it to be perfectly centered, the image needs to have an even number as its width & heigth - odd number width/height and it will be a pixel off |
|
Back to top |
|
|
|