The Daily Click ::. Forums ::. Klik Coding Help ::. Semi-transparent help
 

Post Reply  Post Oekaki 
 

Posted By Message

3kliksphilip

Crazy?

Registered
  20/11/2007
Points
  5698

VIP MemberGOTM - MAY 2009 - 2ND PLACE!The SpinsterGOTM -NOVEMBER 2009 - 2nd place!
14th May, 2009 at 06:40:29 -

Does anybody know how to make it so that two semi transparent objects on top of each other are shaded the same amount as one on its own?

For instance, if I'm using shadows I don't want two on top of each other to be darker than just one on its own. Is there any way of doing this? I've tried making it so that it's a patchwork of shaded, non shaded, shaded, non shaded, but it looks horrible and makes it flicker when you scroll.

 
Don't aim for perfection- you'll miss the deadline

'~Tom~ says (16:41):
well why does the custom controls for the keyboard palyer even affect the menu controls at all whats thep oint jsutm ake it so for the keyboard palyer on the menu screens everything is always up down left right enter regardless of the controls they set'

-Mr Tom, 2010

RedEnchilada

formerly RedEchidna

Registered
  01/08/2008
Points
  301

VIP MemberWii OwnerThe Cake is a LiePicture Me This Round 24 Winner!
14th May, 2009 at 13:31:32 -

I have no clue. Maybe use a different effect, like And?

 
http://www.youtube.com/watch?v=WYrSD35vHo4
woooooooooooooooooaah maaaaaaaaaaaaaaaaaaaaan

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1960

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
14th May, 2009 at 13:55:30 -

I don't think there's any way to do it in the standard version.
It should be possible to make a pixel-shader to do it in HWA, but I'm not sure if anyone has yet. Clickteam forums would be the place to start looking...
You may just have to resort to opaque shadows

 
n/a

AsparagusTrevor

Mine's a pint of the black stuff

Registered
  20/08/2002
Points
  2364

Game of the Week WinnerHas Donated, Thank You!VIP MemberEvil kliker
14th May, 2009 at 14:41:00 -

I can't remember if you can alter the semi-transparency of layers in MMF2? Cos then you could just have the shadows as opaque black sprites on their own layer, but make the layer semi-transparent.

 
Image

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
14th May, 2009 at 20:26:18 -

Yes you can, you need to use the Layers extension, which comes with MMF2. It's used for more then just layering objects, it's used to also interact with layers themselves at runtime. For example hiding them, changing their effects, and changing their transparency. I use it extensively in my game and it performs wonders.

 
http://www.facebook.com/truediamondgame
   

Post Reply



 



Advertisement

Worth A Click