1 registered members (Akow),
1,403
guests, and 9
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Flashing text...
#4342
06/08/01 01:08
06/08/01 01:08
|
Joined: Mar 2001
Posts: 1,825 London, England
Keith B [Ambit]
OP
Expert
|
OP
Expert
Joined: Mar 2001
Posts: 1,825
London, England
|
Hi, has anyone got any idea why this isn't working? I'm trying to get some text flashing on and off, but for some reason it just won't work. As you can see, I'm trying to adjust its alpha values with some simple instructions, but for some reason it is completely ignoring the alpha settings... I have the commercial version, and according to the manual all versions from Extra up can use alpha settings for text, so I can't wee what's wrong. text menu_newgameflash_text { pos_x = 260; pos_y = 315; font = menuflashfont; string = new_game_str; layer = 4; } contained in a function: menu_newgameflash_text.visible = on; menu_newgameflash_text.transparent = on; menu_newgameflash_text.alpha = 0; while (menu_newgameflash_text.alpha < 100) { menu_newgameflash_text.alpha += 10*time; wait(1); } while (menu_newgameflash_text.alpha > 0) { menu_newgameflash_text.alpha -= 10*time; wait(1); } Thanks for any help, -Keith
|
|
|
Re: Flashing text...
#4343
06/08/01 02:05
06/08/01 02:05
|
Anonymous
Unregistered
|
Anonymous
Unregistered
|
Why not toggle the "visible" setting on and off with a 2or3 frame delay between toggles. -Neut.
|
|
|
Re: Flashing text...
#4345
06/08/01 04:16
06/08/01 04:16
|
Anonymous
Unregistered
|
Anonymous
Unregistered
|
Hi. I had the same problem. Confused me for months it did. In the text definition add the line flags = d3d, refresh; The txt will then listen to alpha = ? functions. Hope this helps
|
|
|
Re: Flashing text...
#4346
06/08/01 05:59
06/08/01 05:59
|
Joined: Mar 2001
Posts: 1,825 London, England
Keith B [Ambit]
OP
Expert
|
OP
Expert
Joined: Mar 2001
Posts: 1,825
London, England
|
Hi Jim Panzee, thanks for the reply. Unfortunately I still can't get it to work. I updated the text definition to: text menu_newgameflash_text { pos_x = 260; pos_y = 315; font = menuflashfont; string = new_game_str; layer = 4; flags = d3d,refresh; } but it won't load the level, giving wdl errors that it doesn't recognise refresh or d3d - I think because these flags can only be used in panels, and not with texts... It's driving me nuts... Thanks, -Keith
|
|
|
Re: Flashing text...
#4348
06/11/01 04:42
06/11/01 04:42
|
Anonymous
Unregistered
|
Anonymous
Unregistered
|
adding d3d working for me. What version are you using?
|
|
|
Re: Flashing text...
#4350
06/11/01 09:37
06/11/01 09:37
|
Anonymous
Unregistered
|
Anonymous
Unregistered
|
This is probably a silly suggestion,but I can't see any errors in your code : Have you tried to lower down the value "+= 10*time;" or wait longer than "wait 1", perhaps it's working, but you can't see it...
|
|
|
Re: Flashing text...
#4351
06/11/01 22:58
06/11/01 22:58
|
Joined: Mar 2001
Posts: 1,825 London, England
Keith B [Ambit]
OP
Expert
|
OP
Expert
Joined: Mar 2001
Posts: 1,825
London, England
|
Hi, thanks for the reply. Not a silly suggestion at all, as I hadn't thought of it. Unfortunately I just tried it, altering the time multiplication (lowing it a lot, upping it too) and the wait instruction, but still nothing happened... Thanks, Keith
|
|
|
|