YesNoOk
avatar

More information about Trans state controller? (Read 2110 times)

Started by DNZRX768, May 26, 2013, 01:42:45 pm
Share this topic:
More information about Trans state controller?
#1  May 26, 2013, 01:42:45 pm
  • *****
  • Hug Pikachus!
    • USA
Hello everyone,

I would like to have more information about the Trans state controller, since the docs did not have much to say on the subject other than an example on how to make a character fade in over a certain period of time.

For example, what is source_alpha and dest_alpha mean in this example?

alpha = source_alpha, dest_alpha
Hug the Pikachus!

Hug A Pikachu Today!
Re: More information about Trans state controller?
#2  May 27, 2013, 05:48:53 am
  • ***
I'm not sure I can explain them. but for "fading out", just interchange the values of source and destination for alpha.
Re: More information about Trans state controller?
#3  May 27, 2013, 07:01:31 am
  • *****
  • Hug Pikachus!
    • USA
I guess that is reasonable. But I do want to know what do they mean so that I can do more complex stuff than to simply fading a character in or out over a period of time.
Hug the Pikachus!

Hug A Pikachu Today!
Re: More information about Trans state controller?
#4  May 27, 2013, 07:17:45 am
  • ***
you can infer some kind of idea from the values of no trans (256,0), add1 (256,128) and add (256,256). I think sub is like add but it inverts the colors. I tried sub on a white beam (blurred effect) and it became black/gray but still made the black parts of the blurred sprite disappear in mugen so.....