Circles (and/or other forms) of Light with moving Player Lantern

Started by schmoggi, February 16, 2012, 04:26:19 pm

Previous topic - Next topic

schmoggi

Hey Guys,

So it seems i'm finally requesting some scripters help for an idea, that linger a felt century in my head. The Topic isn't smth. new, thats for sure, wouldn't surprise me if even some of you will roll your eyes while reading this... but well, let me just explain :). I think you can get already the Idea from the Subject for what i'm here asking help.

Light Circles respectively areas of Light on the map/screen while everything else dark, simulating Light Effects!? No Problem so far, right? An Light Area around the Player while everything else dark, simulating a lantern? No Problem too, ofcourse! But what if you want to combine this two things? An impossible task at first, people might think. But it's not a secret, there are solutions to make this actualy work, people already did this.

I have to admit, i like to make Things work mainly with Events. Two Reasons for that:

1. I don't have the Motivation to learn rgss (i have some little programming skills in delphi and java, so its not like i'm a complete noob when it comes to that ^^)
2. Working with Events is a kind of challenge for me, creating complex things (that work smoothless and not hitting performance) is really fun.

Anyway... so, i too combined the two things described above with the Light Effects successful... with Events, mostly! My Solution was, to combine Events with some Light Graphic with other Events also with the same Graphic but, with a specific Letter in their Name (e.g. #), set to viewport 2 (instead of 1, as it is standard). So one of the Events acutally acts like a Picture. Furthermore i combined this with putting a specific Picture to Viewport 3 (because i set some Events to 2, where normally the Pictures are). With this Picture, i simulate the original Tint Screen Color Function, the brightness to be accurant. Its a White Picture, set to Blend Type SUB and with a specific Opacity Value. In this way, like said, i can simulate the original Thing Screen Color Effect. Maybe you already know now how this actually look like when you change this White Picture to one with a transparent Hole in the Center. Yes, a Lantern effect (when put on the player), which can move around with the Player and at the same time there can be Light Effects at other positions like torches etc. It needed some time until i figured how to make this work...

But there is one Problem, that can't be fixed. I has obviously to do with the tint effect combine with the events etc. The thing is, when two Light effects are too close, an ugly "effect" is created... "overlighting". If more than two, it becomes even worse... resulting in a ugly color spot.

Example:

Not nice, huh?

So... thats why i've come here to ask for help. I investigated for some Light Scripts, that actualy have what i need and come across this one here http://www.hbgames.org/forums/viewtopic.php?f=11&t=74494

Fine, problem is it has all the other stuff, time, day n night. Things i dont need, things that not needed in the script (at least for me personaly). Then i found this here on Youtube http://www.youtube.com/watch?v=rpfNBQiKX1w

Sadly, i could not find this script anywhere, i tried to search in google etc.... no chance! But this Video give a good Idead of what i'm searching. So, would be very cool if some expert here could create something :/...  Furthermore, my Idea of Functionality of a possible Script:

- The actual Form of Light is a graphic file (light circle e.g.)
- A specific Letter in the Name of the Event says if this Event is a light source
- By a call script the darkness can be controlled/set
- The Light Sources should be moveable (Guards with torches for example or Player lantern)

Thanks for reading, hoping for answers!

greetz

Taiine

The video for Raziel Light System was posted over a year ago, and any trace f it seems to be long gone.  I tried finding it myself and came across this older request for it as well.
http://forum.chaos-project.com/index.php?topic=11071.0
someone here apparently made a nice light system as well, but the demo is a dead link. There is a 2nd one for a tutorial but it's your basic image event.

Edit: Yeah after digging around all I come across is different sites and links pointing to the video, rather than the script. :/


schmoggi

Hey,

thanks for the answers guys. Sadly, the link you posted diagostimo isn't what i'm looking for. With that Script there you can draw Light circles in different colors, but not actualy erase/lighten up Areas on a dark overall Picture/Effect.

The Guy created it is talking some posts further about it, but it seems the Thread has not been updated anymore :/.

Look at the You Tube Video i posted in my first Post (Razeil Light Script)

Thats excactly what i need. The Ability to show an overall dark tint effect and erase specific Areas, that would be great. The actual Light Effect i would still manage through Event Graphics, that isn't the Problem.

greetz

diagostimo

ah yes i should have read your post with a bit more care :P
what you need sir is this:
http://www.rmxpunlimited.net/forums/topic/4014-eventing-flashlight-tutorial/
you will have to sign up to view the resorces, its all evented, so no need to mess with scripts, you can also use that previous script to enhance lighting areas ect, not sure if it would apear above or below the eventing graphics though :huh:
let me know if you have any issues with this, i do have a demo around somewhere on one of my hd's.

edit:actually after looking at the demo on my hd, i relize the one i pointed you too is only a map triggered one, by all means still use this where fit, but i believe this is more appropriate, its a flash light triggered one, demo:
http://www.mediafire.com/?9onb0jm52fcv30c
i did not make this kirashi did at rmxpunlimited, but i could not find the post so i have re-uploaded it :)

schmoggi

Thanks for trying to help me, but it seems you misunterstanding me.

Your linked Script or Evented System is just a simple lantern/flashlight Picture Effect :). Thats not what i'm looking for. Look again at the Video! I need a script that can do excactly that thing.

greetz

diagostimo

ah, i thought it would be possible to get what was needed tweeking with that, neverless i followed a link from the bottom of that link taiine mentioned, and walla it is exactly what your after, download the 1.2 demo, its in a japanese version of rpg maker but neverless it works :D
http://www.hbgames.org/forums/viewtopic.php?f=11&t=63866

schmoggi

Yep, thats the Idea i am behind. The Script you linked is almost what i need.

But i would like to have only the Functionality that i need without any additional Flickering or other stuff so the script could be slim and smooth. Furthermore, in the linked Script the Light Areas are drawn by the Script itself, not through Pictures/Graphics Files.

Hope, some expert here could build such a Script!

greetz

diagostimo

quote from the script page:
put 1st comment of number on each event to represent their id. Then, put 2nd comment of number to represent the strength of light radius of each event. Next, put the 3rd comment of number to represent the power of flickering.(Both the 3 comments can be put as what number as you want, no more limitation^^ but the 1st comment must be put according to the sequence, which mean must start with value of '1', then '2', then '3'... if you do not wish the event to flick, just set the 3rd comment value as '0' or don't create 3rd comment)

so ye just set the third comment as 0 and you got no flicker, yes it is drawn by the script, maybe you could post on kellessdee to revive his script, i know i and others were inquiring about features that the above has, no harm in asking, and his would be perfect as it does source from an image :)

schmoggi

Alright, i posted on hbgames, hope someone answers me :).

Yeah, i saw the possibility to just deactive the flickering, but my idea was to dont have it actualy in the script so it is more slim.

The Best Ting what could happen would be if some scripter here would come across the topic and write a script from scratch, fit to my requests :).

greetz

Taiine

That Light Circles Script looks nice... can someone download the 1.2 demo and reupload it somewhere else? all that file sharing site it's hosted on ever does for me is load.. and load.. and load.. and load half hour later still loading waiting for it to dl. I've ever gotten anything off that silly site. >.<

schmoggi

Click on that Link http://www.2shared.com/file/AU1X2nyD/LCS_v12.html and then Download.

Well, i tried that Script again... and i have to say i'm not that happy with it. The many little Squares (which are tiles that represent different opacities, i think) are visible and that kind of ugly :/. Furthermore, the Light Areas are a bit to slow updated, resulting in following the Events/Player instead of lying on them.

The Video i posted (Raziels Script) looks much better.

The Request for a little nice Script is still there, hope someone have interest creating smth.

greetz

diagostimo

i meant for you to post on kellsedee's post at rmxpunlimited (points to first link i directed you too) as he did want to impliment these features :) i agree the pixles are ugly and is probably why there is minor lag

Taiine

Another issue I see with the Light Circle Script, is you can't really use screen tones all that well. If you wanted say a blueish tint to night it would make everything really black even the lit areas. There's no control over the hue of the 'darkness' it's just shades of black and adding a screen tone over that just makes it even darker.

The over all look and effect don't really bother me much, true it could look better, and have an option to change the hue of the darkness and not just have it be only black.