I'm making a simulation RPG, where the user levels up different attributes of a character throughout the game. In it, there's a mini-game in which a meter oscillates back and forth, and the user has to stop it on a particular area to get the most points.
What I want to do is make this meter's oscillation speed be inverse to their attribute point rating (so like, 'attention level 20/100' would make the meter fast, while 'attention level 80/100' would make the meter slow, etc.).
I'm trying to just set the actual Sine wave Period of my meter to a Dictionary key value, divided by a number. I.E.:
- Dictionary.Get("attention") / 50
But the expression is not working mathematically. It just calls the value previously stored for 'attention', but doesn't do the division math.
Thoughts? Thanks in advance.