Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-04-2002, 05:21 AM
HoudiniMan HoudiniMan is offline
Playerworld Administrator
HoudiniMan's Avatar
Join Date: Dec 2001
Location: Calfiornia - USA
Posts: 3,512
HoudiniMan will become famous soon enough
Text transparency

With both showtext and the showimg older way of showing text on screen transparency seems to be unsupported...

the script i used was this:
NPC Code:

// NPC made by Citizen Houdini Fontaine (Zormite)
if (created||playerenters) {
showtext 0,x,y,Arial,,Test Text;
changeimgzoom 0,5;
}

if (playerchats && strequals(#c,fade)) {
changeimgcolors 0,0,0,1,0.5;
}



It turns blue if you try it when you say "fade" to show that the command is executed but the alpha doesn't affect the text...

Is there a way to make text fade to transparent?

(I will use a for () loop to make it fade at a given incriment but i can't affect the alpha of the text at all right now other than fading to black on a black background... I need it to be transparent.)
__________________
-HoudiniMan (Chief Playerworld Administrator)
Compulsive Support Center Checker - 5 Years and Change
Graal Support Center

Reply With Quote
  #2  
Old 12-04-2002, 06:09 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
you didnt add changeimgmode, and Im not sure if transparency works on text
Reply With Quote
  #3  
Old 12-04-2002, 08:15 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally posted by Python523
Im not sure if transparency works on text
I am sure. It does not work.
Reply With Quote
  #4  
Old 12-04-2002, 08:21 AM
HoudiniMan HoudiniMan is offline
Playerworld Administrator
HoudiniMan's Avatar
Join Date: Dec 2001
Location: Calfiornia - USA
Posts: 3,512
HoudiniMan will become famous soon enough
Quote:
Originally posted by Python523
you didnt add changeimgmode, and Im not sure if transparency works on text
We tried that too but got the same results.
__________________
-HoudiniMan (Chief Playerworld Administrator)
Compulsive Support Center Checker - 5 Years and Change
Graal Support Center

Reply With Quote
  #5  
Old 12-04-2002, 08:22 AM
HoudiniMan HoudiniMan is offline
Playerworld Administrator
HoudiniMan's Avatar
Join Date: Dec 2001
Location: Calfiornia - USA
Posts: 3,512
HoudiniMan will become famous soon enough
Quote:
Originally posted by Loriel
I am sure. It does not work.
Thats really very nice, but my question is does anybody know if there is a relatively convienient way to do what i'm trying to do here.
__________________
-HoudiniMan (Chief Playerworld Administrator)
Compulsive Support Center Checker - 5 Years and Change
Graal Support Center

Reply With Quote
  #6  
Old 12-04-2002, 08:31 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally posted by HoudiniMan
Thats really very nice, but my question is does anybody know if there is a relatively convienient way to do what i'm trying to do here.
That's really very interesting, but I was not attempting to answer your question

To answer it, the only way to get transparent text is to save it as png or so, and display it as normal image.
Reply With Quote
  #7  
Old 12-04-2002, 10:04 AM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
Quote:
Originally posted by Loriel
That's really very interesting, but I was not attempting to answer your question

To answer it, the only way to get transparent text is to save it as png or so, and display it as normal image.
hehe.. now where have I heard that before? *looks at houdini*
*snicker*
__________________

Reply With Quote
  #8  
Old 12-10-2002, 04:32 PM
HoudiniMan HoudiniMan is offline
Playerworld Administrator
HoudiniMan's Avatar
Join Date: Dec 2001
Location: Calfiornia - USA
Posts: 3,512
HoudiniMan will become famous soon enough
I had a counter thought up however to continue would be utterly pointless. I'm not concerned anymore with the thread and there seems to be nobody with a decent solution...

So mr. mod guy, close away, or whatever it is you do
__________________
-HoudiniMan (Chief Playerworld Administrator)
Compulsive Support Center Checker - 5 Years and Change
Graal Support Center

Reply With Quote
  #9  
Old 12-11-2002, 12:00 PM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
Umm...maybe use showimg instead of showtext?
__________________
Reply With Quote
  #10  
Old 12-11-2002, 12:24 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by Googi
Umm...maybe use showimg instead of showtext?
graal makes showtext lines showimg lines, showtext is just a more organized way of doing it
Reply With Quote
  #11  
Old 12-14-2002, 05:06 AM
billybob53 billybob53 is offline
Banned
Join Date: Nov 2002
Location: Usually in wy own world but at the moment in England
Posts: 33
billybob53 is on a distinguished road
Send a message via AIM to billybob53 Send a message via Yahoo to billybob53
do you mean like half transparent?

If you want that just use:
NPC Code:

changeimgcolors index,r,g,b,alpha;

Reply With Quote
  #12  
Old 12-14-2002, 05:33 AM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
Quote:
Originally posted by billybob53
do you mean like half transparent?

If you want that just use:
NPC Code:

changeimgcolors index,r,g,b,alpha;

you can't do it with text.
__________________

Reply With Quote
  #13  
Old 12-14-2002, 06:34 AM
billybob53 billybob53 is offline
Banned
Join Date: Nov 2002
Location: Usually in wy own world but at the moment in England
Posts: 33
billybob53 is on a distinguished road
Send a message via AIM to billybob53 Send a message via Yahoo to billybob53
u can, but u gotta use 'showimg' instead of 'showtext'
Reply With Quote
  #14  
Old 12-14-2002, 07:59 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by billybob53
u can, but u gotta use 'showimg' instead of 'showtext'
...showtext translates into showimg, showtext is just a more organized version of doing it
Reply With Quote
  #15  
Old 12-17-2002, 02:10 AM
HoudiniMan HoudiniMan is offline
Playerworld Administrator
HoudiniMan's Avatar
Join Date: Dec 2001
Location: Calfiornia - USA
Posts: 3,512
HoudiniMan will become famous soon enough
the four posts predating this one were just a summary of the whole thread... did you even read the entries before yours billybob?
__________________
-HoudiniMan (Chief Playerworld Administrator)
Compulsive Support Center Checker - 5 Years and Change
Graal Support Center

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 06:41 AM.


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