so i googled and searched, and this is what i got mean while.
there is an option to send a line (raycasting) and find out every object that in his way with the option of that object to block this ray
iv heard it is poissible to use it to check what one can see which is what im trying to create
problem is im not sure how. i need to create so many rays to cover every space that my char can see? or how exacly
more over im not really sure about the code when using raycasting so if you could help me a bit with that as well id really apprecciate it
so basicly im trying to create a small arcade game with the charcter in complete darkness and that she can see only in the vision of the mouse
that would be easy with drawing a black on all the other things.. problem is i want to be able to hide objects behind other objects.. and here is when iv looked and found about raycasting
yet not sure how to use it...
thankyou in advance!!!!