Click the green flag and then move the yellow lightning bolt or green dot around. The two variables in the upper right will show the direction FROM the yellow lightning bolt TOWARD the green dot, without making the yellow lightning bolt point in that direction.
Two different methods are demonstrated here. Method 1 uses the blue lightning bolt as a "helper" sprite. It follows the yellow lightning bolt wherever it goes, and it always turns to point toward the green dot. Method 2 uses a script in the yellow lightning bolt that uses the trigonometric function "atan" to compute the direction toward the green dot.