dropbox.com/s/gw45vy559452i36/raycastingLaser.capx
For my game I am trying to make different laser turrets that point in different directions, and have sine behaviors. I would like the lasers to get blocked by solids.
I followed this amazing ray-casting tutorial to get started
construct.net/en/tutorials/lightning-fast-raycasting-587
It worked like a charm ... but it only works for one ray-casting object at a time.
(You'll see in my project file if you delete the other "sentry" objects, the remaining one is functional.)
I feel like I'm just missing something obvious, but maybe it is a much more complicated problem.
dropbox.com/s/gw45vy559452i36/raycastingLaser.capx
EDIT: Honestly even if there is a way to fake this? By maybe only activating the raycast object that is on screen?