I have a sprite orbiting another sprite at a set radius. Orbit radius X & Y are shown in the top-left hand corner.
I have a control that will increase/decrease the orbit radius by a value of 50 when the "W", or "S" key is pressed respectively.
However, when I use those controls, the orbit radius changes unpredictably.
When "W" is pressed:
When "S" is pressed (after "W" is pressed):
Any thoughts on why it is not increasing, or decreasing by the specified value?
Much appreciated.