Thank you, drappdev! That works well.
I guess I was trying to overcomplicate things with variables and loops.
My thought process was as follows:
1. Set a starting and end angle variables.
2. Create a loop that will rotate the cannon from start to end value.If end value is reached, rotate from end to start.
3. Continue until LMB/touch are pressed. Find stopped angle
4. Stop rotation of cannon. Play fire animation and shoot projectile at stopped angle value.
I come from 3D background and do a lot of animation scripting. Sometimes the simple elegance of C2 requires to slow down and smell the roses :)
So based on your example, the values that are being sent to the text object can then be used to set the projectile angle of the fired object.
I'm assuming I should use a bullet object with physics, since I want a parabolic arc.
The point of the game is to keep the fired object afloat as long as possible.
I'm trying to get mechanics similar to this: