I’m trying to create a laser using the lineTo method that shoots to wherever the mouse is clicked. That seems straight forward enough but once the laser is parented to a moving object then of course my laser line moves around with it and ends up well off target! I’m looking for advice on how to keep the laser line tracking the target even while it’s parent is moving around?
Edit: I think I’ve cracked it, just needed to clear the line at the beginning of the enter frame loop before redrawing it.