Mirage Source http://www.miragesource.net/forums/ |
|
Fade? http://www.miragesource.net/forums/viewtopic.php?f=201&t=1174 |
Page 1 of 23 |
Author: | Tony [ Tue Jan 16, 2007 5:40 pm ] |
Post subject: | Fade? |
Im not very good with thinking so I'd like for someone to help me .___. So Lets say I had a function and at player death, How could I possibly check if the player has died if so fade them? I have a function but what I need to know is how to change it to make it look like its fading and how to check if the player has died |
Author: | William [ Tue Jan 16, 2007 5:49 pm ] |
Post subject: | |
What function? |
Author: | Tosuxo [ Tue Jan 16, 2007 6:25 pm ] |
Post subject: | Re: Fade? |
Kuja wrote: Im not very good with thinking so I'd like for someone to help me .___.
So Lets say I had a function and at player death, How could I possibly check if the player has died if so fade them? I have a function but what I need to know is how to change it to make it look like its fading and how to check if the player has died what do you mean by "fade" them? and if getplayerhp(index) <= 0 then FunctionIsDead = 1 if getplayerhp(index) > 0 then FunctionIsDead = 0 or something.... but i still don't know what you mean by "fade" them |
Author: | Tony [ Tue Jan 16, 2007 7:38 pm ] |
Post subject: | |
I have an alpha blending function. I just want to know how to slowly decrease it. Call Blend(10) Call Blend(9) Call Blend(7) Etc. |
Author: | Tosuxo [ Wed Jan 17, 2007 12:13 am ] |
Post subject: | |
you mean like the screen fades out? sorry, i'm drunk, i can't code it for you when drunk hehe |
Author: | Tony [ Wed Jan 17, 2007 9:06 am ] |
Post subject: | |
Omfjesus. How would I decrease a value over and over without a timer? |
Author: | William [ Wed Jan 17, 2007 2:05 pm ] |
Post subject: | |
Its funny you said it was a function, when it was a sub. |
Author: | Dark Echo [ Wed Jan 17, 2007 3:36 pm ] |
Post subject: | |
Best way would be to use gettickcount.. maybe 500 should be a good enough.. fade the sprite by a point every half a second.. maybe 333 might be better.. I dont know, how long it takes for the sprite to fade out completely.. But yeah.. use gettickcount.. ![]() |
Author: | Tony [ Thu Jan 18, 2007 12:59 am ] |
Post subject: | |
William wrote: Its funny you said it was a function, when it was a sub.
Its not a sub, its declaring a function from a dll ._____. |
Author: | Robin [ Thu Jan 18, 2007 1:33 pm ] |
Post subject: | |
If it's the unofficial standard, it will be in 255 points. So, to fade out in two seconds, simply use gettickcount and fade out 255/2 points each second. |
Author: | wanai [ Wed May 11, 2022 10:22 am ] |
Post subject: | Re: Fade? |
Eeml |
Author: | wanai [ Wed May 11, 2022 10:23 am ] |
Post subject: | Re: Fade? |
240.1 |
Author: | wanai [ Wed May 11, 2022 10:24 am ] |
Post subject: | Re: Fade? |
PERF |
Author: | wanai [ Wed May 11, 2022 10:25 am ] |
Post subject: | Re: Fade? |
PERF |
Author: | wanai [ Wed May 11, 2022 10:26 am ] |
Post subject: | Re: Fade? |
Rich |
Author: | wanai [ Wed May 11, 2022 10:27 am ] |
Post subject: | Re: Fade? |
Side |
Author: | wanai [ Wed May 11, 2022 10:28 am ] |
Post subject: | Re: Fade? |
Intr |
Author: | wanai [ Wed May 11, 2022 10:30 am ] |
Post subject: | Re: Fade? |
Clau |
Author: | wanai [ Wed May 11, 2022 10:31 am ] |
Post subject: | Re: Fade? |
Muza |
Author: | wanai [ Wed May 11, 2022 10:32 am ] |
Post subject: | Re: Fade? |
Char |
Author: | wanai [ Wed May 11, 2022 10:33 am ] |
Post subject: | Re: Fade? |
VIII |
Author: | wanai [ Wed May 11, 2022 10:34 am ] |
Post subject: | Re: Fade? |
Nefe |
Page 1 of 23 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |