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

duh i need a flashlight script
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Thu Nov 09, 2006 3:25 pm    Post subject: Reply with quote

Actually flashlight scripts are a pretty huge task to implement. And you probably want to write a script before launching into graphics and tilemaps, because you don't know what restrictions you'll end up with.

Personally I would go with an unconventional approach and reserve a 16x10 part of the map somewhere, and render the tiles there, scripting all heroes and npcs.

You could attempt to scab a working flashlight script off someone who's written one :)
_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
Newbie_Power




Joined: 04 Sep 2006
Posts: 1762

PostPosted: Thu Nov 09, 2006 5:51 pm    Post subject: Reply with quote

I guess the best way would be to use NPCs that cover tiles, and figure out when other NPCs come into the visibility.
Back to top
View user's profile Send private message
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Thu Nov 09, 2006 9:45 pm    Post subject: Reply with quote

As in, black NPCs to cover up tiles you can't see? Well, that might not the best way of doing it. Normally you draw several versions of each tile on a scale from lit to unlit, to easily adjust the light level on each tile. Sure, you could dither black over the tiles... and save alot of tileset space.
Also, covering the whole screen with NPCs tends to be slow, and you'd have to clean up NPCs behind yourself.
_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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