Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

Darkness / FoV script needed

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Baconlabs
PURPLE IS MANLY




Joined: 15 Mar 2009
Posts: 335
Location: Tennessee

PostPosted: Sat Oct 24, 2009 10:16 pm    Post subject: Darkness / FoV script needed Reply with quote

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
View user's profile Send private message
Moogle1
Scourge of the Seas
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 15 Jul 2004
Posts: 3377
Location: Seattle, WA

PostPosted: Sat Oct 24, 2009 10:45 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
Pepsi Ranger
Reality TV Host




Joined: 05 Feb 2003
Posts: 493
Location: South Florida

PostPosted: Sun Oct 25, 2009 6:48 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Baconlabs
PURPLE IS MANLY




Joined: 15 Mar 2009
Posts: 335
Location: Tennessee

PostPosted: Sun Oct 25, 2009 2:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Baconlabs
PURPLE IS MANLY




Joined: 15 Mar 2009
Posts: 335
Location: Tennessee

PostPosted: Mon Oct 26, 2009 6:21 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group