Click Mouse for Camera Action Help

Hello,

I am completely new to the Blender Game Engine and I’m having a bit of trouble. I’m good with setting a camera to follow a set 2-D path, however, I am trying to do more. I don’t quite understand the logic editor. I want to program the camera so that when I left-click, the camera will move forward along the path until it reaches the end, and then when I left-click again, the camera will move backward to the beginning of the path.

Thank you!

are you using a “path” or an animation to move your camera?

I used a line curve, and then I attached the camera to the line.