Chaos Project

RPG Maker => Tutorials => Tutorial Database => Topic started by: Rymdpotatis on July 19, 2008, 05:47:46 am

Title: [RESOLVED] A script that can create light?
Post by: Rymdpotatis on July 19, 2008, 05:47:46 am
I'm not a big fan of using pictures to illustrate enlightened areas. Mostly becouse I can never get them to work properly XD

So I was wondering if there is a script that could do the job, to create a lighter area around events with certain names. In this case: Torches so it would appear that they radiate light. I'm sure it is possible to make something like that since scripting can create mini maps without pictures. =3
Title: Re: A script that can create light?
Post by: Punn on July 19, 2008, 08:26:38 am
you can use an image, I'll post it here later.. but there's another script, but I explain more once hangover dies
Title: Re: A script that can create light?
Post by: Rymdpotatis on July 19, 2008, 10:51:12 am
Quote from: mumerus on July 19, 2008, 08:26:38 am
you can use an image, I'll post it here later.. but there's another script, but I explain more once hangover dies



Alrighty =3
Title: Re: A script that can create light?
Post by: tSwitch on July 19, 2008, 11:07:26 am
to 'create light' I use cosmetic fogs, here, lemme post the pic tutorial I did for someone a while  back :D

Spoiler: ShowHide

first, you take a screenshot of the map.
I'd suggest doing it in the map editing window, as you can zoom out to see the whole map, and not have to do puzzle editing to get the big fog together in your photo program (I use gimp)
(http://img.photobucket.com/albums/v259/psycho-mantis/mapbeforefog.png)

Next, you create a gradient in a new layer over the map.  It has to be a circular gradient, from black to Alpha- 0% black, to create the proper fade.
(http://img.photobucket.com/albums/v259/psycho-mantis/Step2-4.png)

then, delete the lower layer (the map) and save your completed fog
I'd suggest naming it the same as the map, and putting in the map number, just so you remember.
(http://img.photobucket.com/albums/v259/psycho-mantis/FinishedFog.png)

in a parallel process on the map in game, put a change map event, and make the fog activate
if you were at 1/1 in the map editor when you screenie'd the map - fog is at 100%
if you were at 2/1 - fog is at 200%
if you were at 4/1 - fog is at 400%
(this is the fog's magnification, btw)
coordinates: top left orientation - 0,0

it should end up looking something like this (only with your map, not mine xD)
(http://img.photobucket.com/albums/v259/psycho-mantis/mapwithfog.png)


hope that helped
Title: Re: A script that can create light?
Post by: Rymdpotatis on July 20, 2008, 05:43:19 am
Ah, many thanks for the tutorial, even I could understand it. ^_^
Title: Re: [RESOLVED] A script that can create light?
Post by: Zinx10 on January 19, 2009, 03:34:28 pm
sorry for the bump, but is there any way to make the light follow you like a lamp or light that you are carrying?
Title: Re: [RESOLVED] A script that can create light?
Post by: Blizzard on January 19, 2009, 03:41:39 pm
You can store the player's screen coordinates into variables and display the picture according to those coordinates. This would give the impression that the player is carrying the light. I actually posted a demo on this here (http://forum.chaos-project.com/index.php?topic=694.msg13821#msg13821).
Title: Re: [RESOLVED] A script that can create light?
Post by: Exiled_by_choise on January 24, 2009, 03:50:52 am
Hey Blizzard I clicked on the link to the other topic and when I went to download the demo it's not there can you send it to me or repost it.

Thanx
Title: Re: [RESOLVED] A script that can create light?
Post by: Blizzard on January 24, 2009, 07:27:22 am
I fixed the link there.
Title: An event that can create light.
Post by: MeVII on September 15, 2010, 05:39:45 pm
Hello All:

I hope I can avoid being scourged for "necro-posting" or whatever the lingo may actually be, but...

...I figgured Id mention my Animated Lighting Effects (http://forum.chaos-project.com/index.php/topic,5935.0.html) event system here.
Because between Blizzards method, and mine, anyone should be able to do just about anything with lighting anyway they want.

                                                                                                                                                                                       MeVII
Title: Re: [RESOLVED] A script that can create light?
Post by: element on September 16, 2010, 03:03:06 pm
Lol ...necro...