I am working on a greenfoot project and using danpost's beam class for the project. I want to have multiple beams in my game but it will just overlap. So is there a solution to it? Thx :)
I am working on a greenfoot project and using danpost's beam class for the project. I want to have multiple beams in my game but it will just overlap. So is there a solution to it? Thx :)
The way the beam is created, the best you could do is change the ambiance setting. This may not be sufficient for what you want, however.
Ok thanks, i think I figured it out by changing the ambiance setting. But I have another question, (although i feel like the answer is no but just to make sure) is there a way to detect wall blocking the light?
Thank you for your help:)
is there a way to detect wall blocking the light?
Thank you for your help:)
I believe I had recently updated the Light Beam Class Demo scenario to include methods for collision with the beam (like 3 days ago). If you do not have the newer version, redownload it.
I see, but how do i block the light when a collision is detected?
You may be asking too much out of my class. It was not programmed to produce shadowing effects other than out of the range of the beam. You may want to find a raycasting type of class for your purposes.