I’ve dumped the idea mechanically because it wasn’t important enough for my game. It would be great to add though. The best I can do is describe what I was trying to do, and it’s simple. A ‘laser beam’ from the firing point (player) to the enemy. At first I tried scaling the beam based on the collision, but then I couldn’t find where to get the actual collision point; it’s just a collision test (please let me know if I’m wrong and can get the point of intersection).
Therefore, I figured it would be best to draw the ‘laser beam’ from the start point to the end point. This way I can change the ending point based on collision, and the tiling sliced sprite would just draw correctly between the starting point and ending point.
I randomly ran into a document on the graphics component that looked promising, but as I’ve said, I’ve dumped the idea for this project so I’m not in a position to do trial and error. Perhaps on an update. I really did want laser beams.
Thank for your reply, Karg.