Glennyboy
New Member
Gonna get my doughnut on.
Posts: 3
|
Post by Glennyboy on Jan 28, 2004 8:20:04 GMT
I'm aware that FonText writes to a virtual 800x600 screen. However, is it intended to work with other screen modes? The reason i ask is because the positioning is all wrong in different modes: (Screenshots have been scaled down) 640x480: nope 800x600: yup 1024x768: nope Did I miss something?
|
|
|
Post by Beaker on Jan 28, 2004 11:51:31 GMT
How odd! Its supposed to (and does!) position text the same in all resolutions.
Can you post some code? Are you using Graphicswidth()/Height() to centre that text?
|
|
Glennyboy
New Member
Gonna get my doughnut on.
Posts: 3
|
Post by Glennyboy on Jan 28, 2004 12:24:23 GMT
My resolution is set by the variables xres% and yres% at the beginning of my programme, and they're used to position the text. This is the command I'm using:
HUDtext xres/2,yres/2,"GAME OVER",1,1
As for posting code, my game is getting quite big, and I'm not sure what the relevant code would be to post, I've only got a few of your commands in there, and the rest of the program is pretty huge. Any ideas on any specifics that could be causing this?
|
|
|
Post by Beaker on Jan 28, 2004 13:42:52 GMT
Change that line: HUDtext xres/2,yres/2,"GAME OVER",1,1 to this: HUDtext 400,300,"GAME OVER",1,1 Simple!
|
|
Glennyboy
New Member
Gonna get my doughnut on.
Posts: 3
|
Post by Glennyboy on Jan 28, 2004 14:59:34 GMT
*thinks* Ohhh... right. So, whatever resolution I'm running the game in, I should always write the text as if to an 800*600 screen? Aha! Right, thanks!
|
|
|
Post by mjhszxy on Jul 28, 2008 1:28:54 GMT
|
|