try retrieving the terrains (multicolor texture) pixel you shot.
then, see what colour that pixel is, and then according to that spawn an effect.

hope that idea helps smile

regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/