I am making a game in which you shoot a ball. I want there to be a line that follows your finger when you touch the screen (showing you the path the ball will travel). It needs to be straight, and also a little side question:
Once the line is drawn, is there a way to detect if it collides with a sprite? So, if the line hits a wall, it won't go through it? Any help is appreciated, Thanks!