The Daily Click ::. Forums ::. Klik Coding Help ::. Lighting Effects in MMF2
 

Post Reply  Post Oekaki 
 

Posted By Message

Andy Hull



Registered
  08/07/2002
Points
  111
15th December, 2006 at 12:51:29 -

Hey-- I was just curious about doing lighting effects in MMF2....

I made a solid layer in the top frame and switched the ink effect so that it makes the whole scene look like night, but I wanted to have lights in the scene, which would essentially by holes in the "darkness" layer that move around. How can i set this up so multiple holes move around and are cut out of the darkness, creating light areas in the room? Does anyone have an exmple file of this?

thanks...
Andy

 
-astro out

www.astrospoon.com

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
15th December, 2006 at 15:11:34 -

Alpha Channels maybe?

I haven't really messed with them a whole bunch yet.

 
Craps, I'm an old man!

Ski

TDC is my stress ball

Registered
  13/03/2005
Points
  10130

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!KlikCast HelperVIP MemberWii OwnerStrawberryPicture Me This Round 28 Winner!PS3 OwnerI am an April Fool
Candy Cane
15th December, 2006 at 15:14:50 -

Why not? -.- The core should have some surely?

 
n/a

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
15th December, 2006 at 16:04:13 -

Haven't touched it in at least 2 weeks, and it's still TGF driven.

 
Craps, I'm an old man!

bhlaab



Registered
  19/06/2002
Points
  73
15th December, 2006 at 16:11:49 -

The only ideas I can come up with would run completely unbearably slow :\

 
n/a

Fifth

Quadruped

Registered
  07/05/2003
Points
  5815

VIP MemberGOTW JULY 2010 WINNER!Kliktober Special Award TagGOTW HALLOWEEN 2011 WINNERPicture Me This Round 51 Winner!
15th December, 2006 at 16:33:31 -

Hmm... I had something like that once, but it was only set up for one light source.
That, and it was a pretty low resolution. And it was tile-based, too, so it looked kinda blocky.

But the multiple light sources thing was the big issue.

 
Go Moon!

..:.Phox.:..



Registered
  18/02/2005
Points
  646

VIP MemberHero of TimeI like Aliens!Cardboard BoxAttention Getter
16th December, 2006 at 06:23:33 -

phizzy know how to do it I think.

I think he told me that it's done with the OR ink effect, but I'm not sure.

 
Profile edited as it messed the layout of the site up.

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
16th December, 2006 at 18:02:17 -

For a *single* hole of light, you can use a subapplication inside of a large, fullscreen black background. Swear I saw an example of it once.


Otherwise, any other method is bound to either take up massive CPU usage or lots of active objects (or both)

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
16th December, 2006 at 18:03:45 -

I wonder.
What if you used the overlay object with some raycasting effects, in order to give a shadow effect that overlaps backgrounds, and then had ALL active objects onscreen have their transparency set based on that difference. Then maybe you could do it without the subapplication.

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
16th December, 2006 at 18:29:33 -

For one single hole, you could just use one big active, with a hole in it, maybe with some alpha blending too. But I guess that's kind of stupid. I also remember hearing something about the OR effect being able to do something like this, but I've never tried it myself. So there you go, unban phizzy and let him explain kplz?

 
n/a

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
16th December, 2006 at 19:14:30 -

You *can* use 1 big AO, if ur in TGF. Subapps make it easy in MMF, just place it in the middle of a first frame and load the second, real frame.

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
16th December, 2006 at 20:03:31 -

Umm, yeah, but wouldn't that just give you a rectangular "hole"? I'm rather sure you could do it with ink effects somehow...

 
n/a

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
16th December, 2006 at 20:06:52 -

*cough* windows shape object */cough*



god, I made a very honest attempt at using MMF.
IT IS UNUSABLE. I GIVE UP. BACK TO TGF RAAAAHHHH

Image Edited by the Author.

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
16th December, 2006 at 20:20:13 -

Hmm, didn't know you could use Window Shape Object on subapps. Oh well.

Image Edited by the Author.

 
n/a

LAustin



Registered
  04/10/2011
Points
  1
10th October, 2011 at 01:12:26 -

I HAVE A SOLUTION!

Create '3' Layers

On the 2nd Layer create a large black active object. 'Square'

Then change the ink effect to semi-Transparent and coefficient to 20.

Now create your player and put him at the 3rd layer and make him eight directions. or what ever you please.

Now on the 1st layer create a Active object that is a circle and white.

Now change the ink effect on that to Semi-Transparent and coefficient to 100

Ok then go into frame editor and Select 'Always' and put the position always on Player and you can even create another active object to test it!

Thank you and have a nice day.

 
"Forgive others, Its worth it."
   

Post Reply



 



Advertisement

Worth A Click