View previous topic :: View next topic |
Author |
Message |
Baconlabs PURPLE IS MANLY

Joined: 15 Mar 2009 Posts: 335 Location: Tennessee
|
Posted: Sat Oct 24, 2009 10:16 pm Post subject: Darkness / FoV script needed |
|
|
I KNOW I saw this script somewhere on the internet before, someone went through the trouble of doing this and even including a demo file, but I can't find it. So I turn to you guys.
I need a script that will limit the player's field of vision, making nearby tiles visible and outlying tiles pure black or dithered or whatever. This is probably going to end up an each-step script, since the field must move with the lead hero. |
|
Back to top |
|
 |
Moogle1 Scourge of the Seas Halloween 2006 Creativity Winner


Joined: 15 Jul 2004 Posts: 3377 Location: Seattle, WA
|
Posted: Sat Oct 24, 2009 10:45 pm Post subject: |
|
|
You could do this really easily with slices.
Make a large enemy sprite that's pure black (not background-colored... you know). Make another that's black except for a large background-colored circle. Fill the screen with the blackness except for the middle, which gets the empty circle. _________________
|
|
Back to top |
|
 |
Pepsi Ranger Reality TV Host

Joined: 05 Feb 2003 Posts: 493 Location: South Florida
|
Posted: Sun Oct 25, 2009 6:48 am Post subject: |
|
|
You're thinking of a Hamsterspeak article called "Plotscript: Local Lighting."
http://superwalrusland.com/ohr/issue24/index.html _________________ Progress Report:
The Adventures of Powerstick Man: Extended Edition
Currently Updating: General sweep of the game world and dialogue boxes. Adding extended maps.
Tightfloss Maiden
Currently Updating: Chapter 2 |
|
Back to top |
|
 |
Baconlabs PURPLE IS MANLY

Joined: 15 Mar 2009 Posts: 335 Location: Tennessee
|
Posted: Sun Oct 25, 2009 2:00 pm Post subject: |
|
|
Bingo! Now it's time to decide which method is quicker to do.
...And it looks like slices are the way to go. Looks better too. |
|
Back to top |
|
 |
Baconlabs PURPLE IS MANLY

Joined: 15 Mar 2009 Posts: 335 Location: Tennessee
|
Posted: Mon Oct 26, 2009 6:21 am Post subject: |
|
|
Ho dang that was quick! Check it out, only a bunch of repeated lines defining 12 global variables/handles and setting the screen position. Set it as an Autorun script instead of an Each-Step script and it works like a charm.
Just look at this screen! But you can't, because it's gotten so hard to see! Your only help is that the environment periodically lights up to show you the way.
Also this video sums up my response to this newfound darkness.
|
|
Back to top |
|
 |
|