Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Shlomi_Nahari
20
Years of Service
User Offline
Joined: 4th Oct 2003
Location:
Posted: 2nd Mar 2004 15:59
How can i fade/in fade/out text screens ?
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 2nd Mar 2004 16:40
I guess you are using sprites...set transparency on and increase / decrease it in a loop.

BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php
Shlomi_Nahari
20
Years of Service
User Offline
Joined: 4th Oct 2003
Location:
Posted: 2nd Mar 2004 17:22
im not using sprite im using simple text. .
can u post a code maybe ?
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 2nd Mar 2004 19:09
How are you putting your text onto the screen?

If you want good control, which you do for fading, you should put the text onto a bitmap, then create an image from the bitmap and texture a sprite with it. Then you have an object that can be moved, resized, and manipulated in many ways. Most importantly, you can use transparency to fade in and out.

If you don't use a sprite, you will have to write the text to the screen every cycle.

There is one downside to this...to create a bitmap is slow, so it would need to be pre-determined text, or your game must not rely on fast updates at this point.

Some commands to look up...

CREATE BITMAP
SET CURRENT BITMAP
TEXT
CENTER TEXT
CREATE IMAGE
CREATE SPRITE

BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php
Saikoro
20
Years of Service
User Offline
Joined: 6th Oct 2003
Location: California
Posted: 3rd Mar 2004 03:30
U could use this gamma code to fade.

Or if u want it to fade to black, make those 0's turn into 500. Either way, u get the same effect.

-Vash the Stampede

Intel Pentium 4 3.0 Ghz 1024MB Ram NVIDIA GeForceFX 5200 128MB 19" LCD DVI Viewsonic

Login to post a reply

Server time is: 2024-09-21 23:55:26
Your offset time is: 2024-09-21 23:55:26