Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/19/24 18:45
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, Ayumi, kzhao, 7th_zorro), 735 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
text.scale causing text to clip too early #240185
12/09/08 21:54
12/09/08 21:54
Joined: Feb 2006
Posts: 2,185
mpdeveloper_B Offline OP
Expert
mpdeveloper_B  Offline OP
Expert

Joined: Feb 2006
Posts: 2,185
Reffering to this line in the manual:
Quote:
TEXT.scale can lead to wrong clipping of scaled texts under some circumstances. Fixed in A6.41.


I'm using 6.60 and still have the issue of the text clipping before it's off the screen. The manual says that this issue is fixed in a6.4, but it's not, and I'm pretty sure it may still be an issue in A7.

I get the problem when my text is scaled below 1 when the text is not even touching the bottom of the screen. In case you're curious of the code, here it is:

Code:
//////Text Definition

string contstr1[40];

text p1conttxt
{
	string = contstr1;
	layer = 2;
	font = font_white;
	flags = filter, center_x, center_y;
}

//////This is what scales and positions the text (it's set so
//////that the text is automatically repositioned and rescaled
//////in any resolution)

p1conttxt.visible = on;
p1conttxt.pos_x = camera.pos_x + (camy*(256/1024));
p1conttxt.pos_y = camera.pos_y + (camy*(700/768));
p1conttxt.scale_x = camx / (1024*1.5);
p1conttxt.scale_y = camy / (768*1.5);
str_cpy (contstr1, "Continue?\n10");


I have observed this problem for quite some time, but didn't know that this was the issue until just now. I tested it being scaled and not being scaled, the unscaled version caused absolutely no problems while in the scaled version the "10" was cut off even though it wasn't close to the bottom of the screen.

I know it's been said that there won't be another version of A6 (which I think should be reconsidered) but, this should help if the problem still exists in A7.

Last edited by mpdeveloper_B; 12/09/08 21:56.

- aka Manslayer101
Re: text.scale causing text to clip too early [Re: mpdeveloper_B] #240271
12/10/08 10:38
12/10/08 10:38
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Yes, there was a text scale bug fixed in A7.5 that also must have affected A6. If you don't have A7, try lite-C 1.5 - it should work there.


Moderated by  HeelX 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1