there is a question in stackoverflow with the title: Make a line as a sprite with its own collision. Rabbid 76 answered this question with an example
My Question :
How must the example be changed so that when the line hits the image, a "hit" message appears, which disappears again after 1 seconds.
Then a second message comes up for 1 seconds when the line leaves the picture.