Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-07-2006, 11:42 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
Alphablending zoomed Text's?

Hi,

I'm trying to Alphablend a zoomed showtext

means like
NPC Code:

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?
Reply With Quote
  #2  
Old 02-07-2006, 11:52 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Quote:
Originally Posted by projectigi
NPC Code:

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

Or alternatively

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

Reply With Quote
  #3  
Old 02-08-2006, 12:27 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Can't bold stuff in the code block

showtext(500,screenwidth/2,screenheight/2,,"Arial","","foobar test text");
Reply With Quote
  #4  
Old 02-08-2006, 02:48 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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.
Reply With Quote
  #5  
Old 02-08-2006, 04:46 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
any other ideas how to make big text with alphablending? lol
Reply With Quote
  #6  
Old 02-08-2006, 04:53 PM
petro1212 petro1212 is offline
Angelus
petro1212's Avatar
Join Date: Mar 2003
Location: The Moon
Posts: 445
petro1212 is on a distinguished road
Send a message via AIM to petro1212 Send a message via MSN to petro1212
Talking

Quote:
Originally Posted by projectigi
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 =)!
__________________
Reply With Quote
  #7  
Old 02-08-2006, 06:11 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
eeeek then i need so many numbers for positions lol
Reply With Quote
  #8  
Old 02-09-2006, 04:02 PM
petro1212 petro1212 is offline
Angelus
petro1212's Avatar
Join Date: Mar 2003
Location: The Moon
Posts: 445
petro1212 is on a distinguished road
Send a message via AIM to petro1212 Send a message via MSN to petro1212
Quote:
Originally Posted by projectigi
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!
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:35 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.