The Daily Click ::. Forums ::. Klik Coding Help ::. MMF2's built-in alpha channel for sprites
 

Post Reply  Post Oekaki 
 

Posted By Message

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
3rd March, 2009 at 13:39:55 -

I know this is the n00biest of n00b questions I'm sure, but I've just now noticed that MMF2 even HAS an alpha channel for sprites / animations. The thing is I can't figure it out at all.

What exactly does it do? I figured it can be used to add semi-transparent stuff to your otherwise opaque animations (big guess right there).

Any tutorial that exists about it somewhere?

Thank you!!

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

Dr. James MD

Addict

Registered
  08/12/2003
Points
  11941

First GOTW AwardSecond GOTW AwardThird GOTW AwardPicture Me This -Round 26- Winner!
3rd March, 2009 at 14:09:12 -

For sprites its probably best to draw them with a transparent colour and then convert to alpha. The darker a pixel is in the alpha editor- the more transparent it will be. That's all there is to it!

 
Image
http://uk.youtube.com/watch?v=j--8iXVv2_U
On the sixth day God created Manchester
"You gotta get that sand out your vaj!" x13
www.bossbaddie.com

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
3rd March, 2009 at 15:51:10 -

Thank you DJ, it's still a little confusing but now I have more to work with.

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
3rd March, 2009 at 18:32:40 -

It's useful because you can have varying levels of transparency within the same picture. also some people use transparent edges as a form of anti aliasing.

Edited by AndyUK

 
.

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
3rd March, 2009 at 19:44:33 -

It's also incredibly useful for bringing in things like logos or photoshopped objects, because MMF2 will preserve the alpha channel of things like PNG's and TGA's.

 
http://www.facebook.com/truediamondgame

Dustin Gunn

Gnarly Tubular Way Cool Awesome Groovy Mondo

Registered
  15/12/2004
Points
  2659

Game of the Week WinnerKlikCast StarVIP MemberI'm on a BoatGOTW Winner Oct 2010Kliktober Special Award Tag
4th March, 2009 at 01:14:38 -

You can draw something in photoshop, save it as a png, then import it in the mmf image editor and it will import its alpha layer as well.

 
n/a

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
4th March, 2009 at 02:02:46 -

That's exactly what I said..?

 
http://www.facebook.com/truediamondgame

Dustin Gunn

Gnarly Tubular Way Cool Awesome Groovy Mondo

Registered
  15/12/2004
Points
  2659

Game of the Week WinnerKlikCast StarVIP MemberI'm on a BoatGOTW Winner Oct 2010Kliktober Special Award Tag
4th March, 2009 at 05:09:50 -

Read? Threads? Me? Pfft.

 
n/a

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
4th March, 2009 at 11:21:48 -

It might be a good idea if it's the very last thread posted before you made yours.

 
http://www.facebook.com/truediamondgame

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
4th March, 2009 at 13:24:02 -

Okay, finally figured it out for the anti-aliasing outline part. That only really works if all your graphics have it though. I wonder if you could use something like this to make a heat blurry effect for fire or something? Sounds like a possibility to me.

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

Dr. James MD

Addict

Registered
  08/12/2003
Points
  11941

First GOTW AwardSecond GOTW AwardThird GOTW AwardPicture Me This -Round 26- Winner!
4th March, 2009 at 13:47:57 -

You couldn't do a blur effect for it but you could definitely add a glow. I've got this in my game and its fairly easy to do-

Draw a fireball as normal but give it a large blank frame (this is where the glow will be).
Convert the image to an alpha.
Copy the black/white alpha layer into Photoshop.
Seperate the black and white into 2 layers. Duplicate the white layer.
Add a gaussian blur according to flavour.
Copy that merged graphic back into MMF2 under the alpha layer.
Edit the colours (the non-alpha bit) and fill the rest of the image in with whatever colour matches the central graphic.

 
Image
http://uk.youtube.com/watch?v=j--8iXVv2_U
On the sixth day God created Manchester
"You gotta get that sand out your vaj!" x13
www.bossbaddie.com

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
4th March, 2009 at 17:29:55 -

Sounds too complicated for me to add now but there's another reason to look forward to Tormishire

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

nim



Registered
  17/05/2002
Points
  7233
10th March, 2009 at 05:47:16 -


Originally Posted by Dr. James
You couldn't do a blur effect for it but you could definitely add a glow. I've got this in my game and its fairly easy to do-

Draw a fireball as normal but give it a large blank frame (this is where the glow will be).
Convert the image to an alpha.
Copy the black/white alpha layer into Photoshop.
Seperate the black and white into 2 layers. Duplicate the white layer.
Add a gaussian blur according to flavour.
Copy that merged graphic back into MMF2 under the alpha layer.
Edit the colours (the non-alpha bit) and fill the rest of the image in with whatever colour matches the central graphic.



Not being sarky but wouldn't it be easier to just draw the thing in Photoshop, save it as a PNG and import it into MMF that way?

 
//

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
10th March, 2009 at 10:13:20 -


Originally Posted by Nim

Originally Posted by Dr. James
You couldn't do a blur effect for it but you could definitely add a glow. I've got this in my game and its fairly easy to do-

Draw a fireball as normal but give it a large blank frame (this is where the glow will be).
Convert the image to an alpha.
Copy the black/white alpha layer into Photoshop.
Seperate the black and white into 2 layers. Duplicate the white layer.
Add a gaussian blur according to flavour.
Copy that merged graphic back into MMF2 under the alpha layer.
Edit the colours (the non-alpha bit) and fill the rest of the image in with whatever colour matches the central graphic.



Not being sarky but wouldn't it be easier to just draw the thing in Photoshop, save it as a PNG and import it into MMF that way?



Yes

 
http://www.facebook.com/truediamondgame
   

Post Reply



 



Advertisement

Worth A Click