The Daily Click ::. Forums ::. Klik Coding Help ::. Making it easier
 

Post Reply  Post Oekaki 
 

Posted By Message

Dean James Reynolds



Registered
  16/05/2010
Points
  219

VIP Member
5th May, 2011 at 14:59:17 -

Hey guys, I would like to achieve something which I have already achieved, but it's not an efficent way of achieving it.

"Each square has a light level from 15 to 0. Each level is 20% less than the level above it. If a square contains a light source it gets the luminosity of that light source, otherwise it gets one less than the brightest neighbor.

Sunlight is special, it suffers no vertical attenuation."

I would like to achieve that without using actives, Either that or what I would like is if an active has 4 actives around it on each side (left,right,up or down) to be at 70% semi-transparent, but if it hasn't got 4 actives on each side then be 0% semi-transparent.

I could do this with actives, but I think it will affect performance and in-definitely the future of my game since it's going to be so huge. Thanks

 
n/a

s-m-r

Slow-Motion Riot

Registered
  04/06/2006
Points
  1078

Candle
5th May, 2011 at 17:22:06 -

I reckon you ought to talk with Fifth about his/her excellent platformer, Illuminator:

http://create-games.com/download.asp?id=8221

That game may have the effect you're seeking. Besides, it's a great game in its own right.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click