1 registered members (Ayumi),
1,170
guests, and 2
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Text
[Re: Sepiantum]
#298225
11/13/09 00:19
11/13/09 00:19
|
Joined: Apr 2006
Posts: 737 Ottawa, Canada
Ottawa
User
|
User
Joined: Apr 2006
Posts: 737
Ottawa, Canada
|
Hi! From the manual Example: STRING* welcome_str = "Welcome";
TEXT* welcome_txt = { layer = 1; pos_x = 10; pos_y = 10; string (welcome_str,"this is","a","TEXT"); // flags = CENTER_X | TRANSLUCENT | SHOW;
in a function .... set (welcome_txt, SHOW); wait (-2); toggle (welcome_txt, SHOW); ...
Hope this helps! Ottawa Ver 7.86.2 Pro and Lite-C
|
|
|
Re: Text
[Re: Sepiantum]
#298454
11/15/09 07:59
11/15/09 07:59
|
Joined: Mar 2009
Posts: 88
Walori
Junior Member
|
Junior Member
Joined: Mar 2009
Posts: 88
|
well you could try aligning the text something like this:
TEXT* test_txt={
pos_x = 0;
pos_y = 0;
layer = 100;
...
}
void main(){
test_txt.pos_x = screen_size.x/2;
test_txt.pos_y = screen_size.y/2;
test_txt.flags = CENTER_X | CENTER_Y | SHOW;
...
}
With that no matter which resolution you would have th text would allways be centered on the screen.
|
|
|
|