Hey there, I'm conceptualizing a hide-and-seek sort of game where It obliterates other players with a massive laser beam.
The issue I am having is that I have literally no idea how to build the laser the way that I want. I want the beam to be blocked by anything that isn't a player's body, essentially. Or even maybe blocked by a player: hide behind a corpse to shelter yourself from the laser.
Point is, I want the beam to be blocked by solids, but have portions of the beam continue. Here's a simple concept drawing.
I was considering... would it be possible to use, like... a tilemap? Like a tilemap of many 1x1 squares? It doesn't seem very practical but... I dunno, that's all I could think of. Or maybe using a shadow caster somehow...