GameSalad Project - Speed Dial
A GameSalad project to rotate a pin on a speed dial.
Touch the red and green boxes to increase and decrease the speed.
The pin is constrained using this formula:
150 – ((300 / 100) * ((100 / game.Max Speed) * game.Speed))
If you want to start the pin a little higher up change the 150 in the formula to the desired angle like 120, and change the 300 in the formula to be the desired angle multiplied by two i.e. 240.
There’s a game attribute called Max Speed which you can adjust before running. The smaller the number the less steps it needs to go through before it gets to the end of the speed dial. The higher the number the more steps it needs.
Click the link above to download the zip file.