The Daily Click ::. Forums ::. Klik Coding Help ::. Field of vision
 

Post Reply  Post Oekaki 
 

Posted By Message

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  531

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
27th September, 2007 at 20:16:01 -

Right, I'm wanting an effect where darkness surrounds the player but has only a small area of the screen around the player which is actually visible, the screen would gradually darken out the further away from the player. What would be a good way of doing this?

 
Image

Tell 'em Babs is 'ere...

Peblo

Custom ratings must be 50 characters or less

Registered
  05/07/2002
Points
  185

Game of the Week WinnerVIP MemberI'm on a Boat360 OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimePS3 OwnerIt's-a me, Mario!
I'm a Storm TrooperSonic SpeedStrawberryI like Aliens!Wii OwnerMushroomGhostbuster!
27th September, 2007 at 23:24:42 -

I'd almost call that digesting the player if the throat didn't expand at the top.

 
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
28th September, 2007 at 03:58:19 -

Edit: Nvm, I know what you mean now.

Make a black active, the size of the window. Then (assuming that you're using MMF2) just edit its alpha channel and make a smooth, fading transparent circle in the middle of it. Turn off "follow playfield" in object properties, and you're done.

Image Edited by the Author.

 
n/a

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  531

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
28th September, 2007 at 06:40:19 -

Yeah thats exactly what I'm after.

I'm with you most of the way but whats this about alpha channels?

 
Image

Tell 'em Babs is 'ere...

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
28th September, 2007 at 09:26:23 -

Alpha channel basically means per-pixel semitransparency. Just click the "transparency" button, as shown in Phizzy's screenshot, and select "alpha channel". Then click "show" and "edit", and start editing the alpha channel. Black is transparent, white is opaque and everything there between is semitransparent.

 
n/a

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  531

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
28th September, 2007 at 09:46:37 -

Wow, thats a really useful feature! Thanks for the help guys!

 
Image

Tell 'em Babs is 'ere...

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
28th September, 2007 at 10:24:13 -

Make a black active, the size of the window. Then (assuming that you're using MMF2) just edit its alpha channel and make a smooth, fading transparent circle in the middle of it. Turn off "follow playfield" in object properties, and you're done.

I did something similar but used a large black rectangular active object with a transparent hole cut out of the middle that always follows the hero around. It doesn't fade though. You need to make sure the blackness is larger than the frame though. If your guy goes all the way to one side you might see a sliver of light at the opposite edge of the screen (the end of the black object).

I need to try alpha channel objects still. What are they good for in general? Upgrades to active objects?

 
--

"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!

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
28th September, 2007 at 12:25:58 -


Originally posted by Del Duio
I need to try alpha channel objects still. What are they good for in general? Upgrades to active objects?



What you see in the above screenshot is an ordinary active object. Alpha channel is not a separate object, it's more of a tool actually. What's it good for? Well, it's just a graphical gimmick, really. But it's good for antialising sprites, and you can get some pretty nice effects with it too.

 
n/a

waffleton



Registered
  20/04/2007
Points
  794
28th September, 2007 at 13:19:48 -

I'm using the overlay object (plus actives with ink-effects and alphas) right now for my Resi 4 'remake' to make something similiar.
I've managed a pretty sweet flashlight/line of sight effect, which sounds just about identical to what you are talking about.

Could upload source if interested.

Image Edited by the Author.

 
n/a

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  531

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
28th September, 2007 at 19:56:12 -

I for one am very interested, you big tasty waffle, you!

 
Image

Tell 'em Babs is 'ere...

waffleton



Registered
  20/04/2007
Points
  794
29th September, 2007 at 02:21:27 -

Yes sir!
I'll send it to your e-mail, if that's the correct one in your profile.

 
n/a

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
30th September, 2007 at 08:02:36 -

For everyone who doesn't know: an alpha channel is an extra channel next to the red, green and blue channels to set the transparency value of a pixel.

 
Old member (~2004-2007).
   

Post Reply



 



Advertisement

Worth A Click