The Daily Click ::. Forums ::. Klik Coding Help ::. detecting pixel color in hidden layer
 

Post Reply  Post Oekaki 
 

Posted By Message

Rick Shaw



Registered
  30/04/2008
Points
  158
30th April, 2008 at 17:24:57 -

Long time lurker, first time poster.

Anyway, I have this idea for an advanced sort of "collision detection" in a top-down game by means of a layer that stays hidden & encodes all sorts of data in a sort of color map, underneath all the real action. For example, red might mean obstace, green might mean window, blue might mean metallic surface that makes noise when you walk on it etc.

This made sense when I thought of it, but in practice I can't find a method for determining RGB on a layer that isn't on top (i.e. is hidden behind something else.) The Pixel Object is almost what I need, and I tried putting it on the lower layer, but it doesn't work.

Is there a workable solution?

 
n/a

Rick Shaw



Registered
  30/04/2008
Points
  158
1st May, 2008 at 14:56:44 -

In case anyone is wondering about the same thing, I found an extension that looks like it was made to do exactly what I'm trying to do. I haven't had time to try it yet tho:

http://www.bumderland.com/objects/overlay.html

Big ups to the Overlay Object!

 
n/a

»xerus



Registered
  28/06/2002
Points
  675

You've Been Circy'd!Game of the Week Winner
1st May, 2008 at 15:47:57 -

Thats an interesting way to go about collisions of different materials and objects... I'd love to see how it turns out

 
n/a
   

Post Reply



 



Advertisement

Worth A Click