Making sprites Transparant

Started by Duo Solo, April 29, 2010, 07:10:57 PM

Previous topic - Next topic

Duo Solo

I want my characters sprites to look transparant (to give my character the invisible look without him actually being invisible). How would I implement this feature?

walt

Trans = add1


HEY VANS, DID I GET IT RIGHT? :beam:

Cybaster

@ waruto : IINM, your code applies to stages only, and Scirocco is talking about characters, so nope. :P

In the definition of your animations, in the AIR file, add ",,A" or any other value to make it transparent as you wish.

1,0,0,0,2 would become 1,0,0,0,2,,A or 1,0,0,0,2,,AS120D256 for example.
ASxxxDyyy : "xxx" is the source, and "yyy" the destination, both values being between 0 and 256.

Duo Solo

I want the sprite to be half transparent. Also, the code to make the character completely invisible is ",,A" then "1,0,0,0,9". Is this correct?

Nero D.

Using FFU is best for this:

On the AIR section go to the color section at the bottom. From there you change the first empty space to A/A1 and change the last bracket to any number until your character is as transparent as you want it.
i cant count the reasons i should stay

one by one they all just fade away...


http://nero-blanco.deviantart.com/

Cybaster

Quote from: Scirocco on April 29, 2010, 09:37:35 PM
I want the sprite to be half transparent. Also, the code to make the character completely invisible is ",,A" then "1,0,0,0,9". Is this correct?
What ?

Quote from: Cybaster on April 29, 2010, 07:32:58 PM
In the definition of your animations, in the AIR file, add ",,A" or any other value to make it transparent as you wish.
1,0,0,0,2 would become 1,0,0,0,2,,A
I cannot say it better.

Test on the stance and just see what it does.

Cyanide

A is pure additive transparency. It causes black to become invisible, and white will stay opaque.

A1 splits it

S subtracts (this always looks black anyway)

You can use A###D### to alter the level of transparency a little more. This is ONLY in the .air file though.

Using type = trans means you can use add, add1, sub, or addalpha which takes an additional parameter of alpha = ###,### to set the values.

If you scale your sprites using angledraw, the .air file defined transparency no longer functions and you MUST use trans.


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.

kakkoii superhero

I think if your sprite is in colors it would have different result regarding the stage/ BG color or pal fx applied to the BG at that moment,

if you want the char sprite looks totally transparant then have it blocked in solid black then set the air with A

Average Mugen Guild Poster

Quote from: Nero. on April 29, 2010, 09:47:17 PM
Using FFU is best for this:

On the AIR section go to the color section at the bottom. From there you change the first empty space to A/A1 and change the last bracket to any number until your character is as transparent as you want it.
Lol no.

fucking bad poster asshole that home32 bitch

Nero D.

i cant count the reasons i should stay

one by one they all just fade away...


http://nero-blanco.deviantart.com/

Average Mugen Guild Poster


fucking bad poster asshole that home32 bitch

Cyanide

FFU isn't best for anything. Understanding what is behind it is far more important than using any tool.


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.

Cybaster

Are you saying that people should learn how to create stage by coding before using my automatic stage tool ?! >:( Screw work, let people be lazy !!!

Cyanide

And then they come to my section asking "how do i?"


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.

Bastard Mami

cybaster should make a tool that resets their computer if they get to the help section.

Zero-Sennin

Quote from: K'Ura ~ on May 02, 2010, 06:14:28 AM
cybaster should make a tool that resets their computer if they get to the help section.

He's already Red XIII, he's badass enough without having the power to remotely reset your--
*Zero-Sennin's computer shuts down*

...On topic though, I find that FFU's useful for previewing trans effects without having to run MUGEN (if that matters to you)--one of the good things about it. But, since it apparently eats palettes...be careful, I guess? <__<
Youtube 
Twitter
Ask.fm
Zero-Sennin's Workshop
Quote[22:18] <Ebil_Homer> because you messed up?
[22:18] <Ebil_Homer> well that's a fucking shame
[22:18] <Ebil_Homer> pick up your sucks

I don't provide old versions of my characters once they're updated. Please don't ask me for them.

Average Mugen Guild Poster

Quote from: Zero-Sennin on May 02, 2010, 06:33:47 AM
Quote from: K&#039;Ura ~ on May 02, 2010, 06:14:28 AM
cybaster should make a tool that resets their computer if they get to the help section.

He's already Red XIII, he's badass enough without having the power to remotely reset your--
*Zero-Sennin's computer shuts down*

...On topic though, I find that FFU's useful for previewing trans effects without having to run MUGEN (if that matters to you)--one of the good things about it. But, since it apparently eats palettes...be careful, I guess? <__<
FF32 is fine, but Ultimate shits my palette out backwards. --;

fucking bad poster asshole that home32 bitch

Cyanide

Quote from: Home32 on May 02, 2010, 06:35:39 AM
Quote from: Zero-Sennin on May 02, 2010, 06:33:47 AM
Quote from: K&#039;Ura ~ on May 02, 2010, 06:14:28 AM
cybaster should make a tool that resets their computer if they get to the help section.

He's already Red XIII, he's badass enough without having the power to remotely reset your--
*Zero-Sennin's computer shuts down*

...On topic though, I find that FFU's useful for previewing trans effects without having to run MUGEN (if that matters to you)--one of the good things about it. But, since it apparently eats palettes...be careful, I guess? <__<
FF32 is fine, but Ultimate shits my palette out backwards. --;
I'm not Cybaster.


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.

Average Mugen Guild Poster

Quote from: Cyanide on May 02, 2010, 07:22:41 AM
Quote from: Home32 on May 02, 2010, 06:35:39 AM
Quote from: Zero-Sennin on May 02, 2010, 06:33:47 AM
Quote from: K&#039;Ura ~ on May 02, 2010, 06:14:28 AM
cybaster should make a tool that resets their computer if they get to the help section.

He's already Red XIII, he's badass enough without having the power to remotely reset your--
*Zero-Sennin's computer shuts down*

...On topic though, I find that FFU's useful for previewing trans effects without having to run MUGEN (if that matters to you)--one of the good things about it. But, since it apparently eats palettes...be careful, I guess? <__<
FF32 is fine, but Ultimate shits my palette out backwards. --;
I'm not Cybaster.
I'm not K'Ura.

fucking bad poster asshole that home32 bitch

Cyanide

You're not zero-sennin either. I hit quote on the wrong post.


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.