PDA

View Full Version : Alphablending zoomed Text's?


projectigi
02-07-2006, 11:42 PM
Hi,

I'm trying to Alphablend a zoomed showtext

means like

function onCreated(){
showtext(500,screenwidth/2,screenheight/2,,"Arial","","foobar test text");
with(findimg(500)){
layer=5;
alpha=0.5;
zoom=3;
}
}

when i dont use zoom it alpha blends it but with zoom it doesn't

any ideas?

Yen
02-07-2006, 11:52 PM
function onCreated(){
showtext(500,screenwidth/2,screenheight/2,,"Arial","","foobar test text");
with(findimg(500)){
layer=5;
alpha=0.5;
zoom=3;
}
}


Or alternatively

with (findimg(500)) {
font = "Arial";
text = "Lawlerskatez";
x = screenwidth / 2;
y = screenheight / 2;
alpha = .5;
zoom = 3;
layer = 5;
}

Yen
02-08-2006, 12:27 AM
Can't bold stuff in the code block >_<

showtext(500,screenwidth/2,screenheight/2,,"Arial","","foobar test text");

Admins
02-08-2006, 02:48 AM
It's currently not possible, on Windows v4 zoomed text is drawn using GDI which cannot do transparency. It might be possible in the future to use polygons to draw zoomed text, but currently it is not possible.

projectigi
02-08-2006, 04:46 PM
any other ideas how to make big text with alphablending? lol

petro1212
02-08-2006, 04:53 PM
any other ideas how to make big text with alphablending? lol

Make your own font in psp (simply get all the letters/chars you want to use and put them in a layered image than export them as 24bit/alphatransparency image, there are some tutorials in gfx section)
Now "simply" script your own display system for text and voila you can zoom and use alpha transparency.

Ps, best would be to have a diffrent image for a few font sizes. Cause using font size 8 (or something) and zooming it with a factor of 10 would just be ugly. This might be a bit of work but hey, see it like this in the end you get want you want =)!

projectigi
02-08-2006, 06:11 PM
eeeek then i need so many numbers for positions lol

petro1212
02-09-2006, 04:02 PM
eeeek then i need so many numbers for positions lol

You could try placing them in a square spritesheet =) and assign a affixed and logical position/order to them

Maby limit yourself to high cap A till Z low cap A till 52 Chars
and 0 till 9 (logical) 61 chars
! ? > < . " @ (that should cover most of the extra chars you might need..) 68 chars

Doesn't sound like alot of work .. wait it does AHHH CHAOS!