Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fade?
#1
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
Reply
#2
What function?
Reply
#3
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 = 0

or something.... but i still don't know what you mean by "fade" them
Reply
#4
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.
Reply
#5
you mean like the screen fades out? sorry, i'm drunk, i can't code it for you when drunk hehe
Reply
#6
Omfjesus. How would I decrease a value over and over without a timer?
Reply
#7
Its funny you said it was a function, when it was a sub.
Reply
#8
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.. :wink:
Reply
#9
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 ._____.
Reply
#10
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)