Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Akow), 1,403 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Flashing text... #4342
06/08/01 01:08
06/08/01 01:08
Joined: Mar 2001
Posts: 1,825
London, England
Keith B [Ambit] Offline OP
Expert
Keith B [Ambit]  Offline 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

A
Anonymous
Unregistered
Anonymous
Unregistered
A



Why not toggle the "visible" setting on and off with a 2or3 frame delay between toggles.

-Neut.


Re: Flashing text... #4344
06/08/01 03:30
06/08/01 03:30
Joined: Mar 2001
Posts: 1,825
London, England
Keith B [Ambit] Offline OP
Expert
Keith B [Ambit]  Offline OP
Expert

Joined: Mar 2001
Posts: 1,825
London, England
Hi, the reason I don't want to do that is that would look too urgent for what I want. I'm overlaying black text on top of white text - I want the black text to gently fade in and out. But I don't understand why this code isn't working, as the exact same code works to fade in and out panels and suchlike...

Re: Flashing text... #4345
06/08/01 04:16
06/08/01 04:16

A
Anonymous
Unregistered
Anonymous
Unregistered
A



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] Offline OP
Expert
Keith B [Ambit]  Offline 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... #4347
06/10/01 22:37
06/10/01 22:37
Joined: Mar 2001
Posts: 1,825
London, England
Keith B [Ambit] Offline OP
Expert
Keith B [Ambit]  Offline OP
Expert

Joined: Mar 2001
Posts: 1,825
London, England
Anyone?

Re: Flashing text... #4348
06/11/01 04:42
06/11/01 04:42

A
Anonymous
Unregistered
Anonymous
Unregistered
A



adding d3d working for me. What version are you using?

Re: Flashing text... #4349
06/11/01 08:38
06/11/01 08:38
Joined: Mar 2001
Posts: 1,825
London, England
Keith B [Ambit] Offline OP
Expert
Keith B [Ambit]  Offline OP
Expert

Joined: Mar 2001
Posts: 1,825
London, England
Commercial A5.105... I'm probably doing something incredibly stupid, I just can't see what yet. Was it actually with text that you got it to work, or with a whole panel?
Thanks,
Keith

Re: Flashing text... #4350
06/11/01 09:37
06/11/01 09:37

A
Anonymous
Unregistered
Anonymous
Unregistered
A



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] Offline OP
Expert
Keith B [Ambit]  Offline 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

Page 1 of 2 1 2

Moderated by  HeelX, Spirit 

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