YesNoOk
avatar

Translucent background animations... is it possible? *solved* (Read 977 times)

Started by Kaandorpius, February 25, 2011, 05:59:02 am
Share this topic:
Translucent background animations... is it possible? *solved*
#1  February 25, 2011, 05:59:02 am
  • **
  • I like playing with girls,.. ;)
I'm trying to animate a lightning strike for a stage, but i need it to be translucent to work on this one. When i script the image into an animation the values for transparancy work out different.

Why is this? Can it be changed?

Last Edit: February 25, 2011, 11:10:12 am by Kaandorpius

MDI

Re: Translucent background animations... is it possible?
#2  February 25, 2011, 06:10:33 am
  • *****
    • mugen.yolasite.com/stages.php
Instead of using "trans =", put ",,a" after a frame of animation. For example,

[Begin Action 5]
3,1,0,0,8,,a
3,2,0,0,8,,a
3,3,0,0,8,,a

I believe "s" and "a1" are also acceptable. Don't know about addalpha though.
Anonymous said:
Actually you racist ass, rap was a good choice for that particular trailer.
Re: Translucent background animations... is it possible?
#3  February 25, 2011, 06:16:45 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Don't bother with S or A1 if you're using black blurred sprites. A is what you need there. Addalpha is

AS###D### in animaton format with the ###'s being numbers


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

MDI

Re: Translucent background animations... is it possible?
#4  February 25, 2011, 06:18:05 am
  • *****
    • mugen.yolasite.com/stages.php
Whoa. Didn't know that. Quite useful!  ;D
Anonymous said:
Actually you racist ass, rap was a good choice for that particular trailer.
Re: Translucent background animations... is it possible? *solved*
#5  February 25, 2011, 06:18:50 am
  • **
  • I like playing with girls,.. ;)
Instead of using "trans =", put ",,a" after a frame of animation. For example,

[Begin Action 5]
3,1,0,0,8,,a
3,2,0,0,8,,a
3,3,0,0,8,,a

I believe "s" and "a1" are also acceptable. Don't know about addalpha though.
Don't bother with S or A1 if you're using black blurred sprites. A is what you need there. Addalpha is

AS###D### in animaton format with the ###'s being numbers

You guys are awesome! Thanx!
Re: Translucent background animations... is it possible? *solved*
#6  February 25, 2011, 03:47:43 pm
  • ******
  • Limited time to use Infinite power !
    • France
    • network.mugenguild.com/cybaster/
My stage tutorial is here to fulfill all your needs. :P

- Adding transparency :

We previously used the "trans" parameter in normal sprites to make the clouds transparent. However, when defining an animation, you may want to define the transparency within the animation itself. This is done by adding some other code at the end of the line :
[mcode]
[Begin Action WTF Trans]
10,2,0,0,5      ;Normal sprite
10,2,0,0,5,,A   ;Additive transparency (identical to trans=add)
10,2,0,0,5,,A1   ;Additive transparency with background dimmed to 50% brightness (identical to trans=add1)
10,2,0,0,5,,S   ;Substractive transparency (identical to trans=sub)
[/mcode]
notice the two ",,". These are made because the code between the commas is made to flip the sprites, as we have seen in the precedent paragraph.

If you're using WinMugen or Linux Mugen (but not DOS Mugen), you can also define the transparency better as if you were using "trans = AddAlpha". This is done by using ASxxxDyyy, with "xxx" being the source, and "yyy" the destination, both values being between 0 and 256. If you want to make an animation fade out, you would use a code like this :
[mcode]
[Begin Action 16];Fading Out
16,0, 0,0, 4,,A
...
16,13, 0,0, 4,,A
16,14, 0,0, 4,,A
16,15, 0,0, 4,,AS200D256
16,16, 0,0, 4,,AS160D256
16,17, 0,0, 4,,AS120D256
16,18, 0,0, 4,,AS80D256
16,19, 0,0, 4,,AS40D256
16,-1, 0,0, 40,,AS40D256
[/mcode]
The last line means that you're using and empty sprite.
Re: Translucent background animations... is it possible? *solved*
#7  March 08, 2011, 05:49:08 am
  • avatar
ok i have a problem that ive been trying to work out for weeks, i am working on a stage and i have an image i want for the background but i want there to be a huge hole in the wall where you can see a different room, in fighter factory i have the inside of the hole so its clear when i use active transparency but i havent figured out how to make it transparent when its playing in mugen
                   -thanks very much
                        dave
Re: Translucent background animations... is it possible? *solved*
#8  March 08, 2011, 06:44:36 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Make your own topic next time huh? Specially if you're posting in something marked solved.

Aside from the fact bg documentation would give you the answer. Mask = 1


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Translucent background animations... is it possible? *solved*
#9  March 08, 2011, 05:33:49 pm
  • avatar
sorry that was litterally my first post ill make another one because i tried that like i said  i tried for weeks