I take it this page does not exist?
https://bitbucket.org/TwoLivesLeft/codea/wiki/parameter
The problem:
I’m trying to make a certain parameter change its upper value dynamically
so that it always matches a number set by another parameter.
My understanding is that when you put parameters in the setup function it will only
setup the parameters once.
Thus anything that should change a parameter’s maximum after start up is thus ignored as it only goes there once.
Suffice it to say I’ve tried putting it in the draw function, the touch function, and a class init function (on separate occasions of coarse not all at once).
draw function results:
parameter gets set to 1 and can’t be moved.
Starting it with a 0 minimum? Makes 1 its maximum.
touch function results:
Starting it with a 0 minimum? Makes 1 its maximum unless you change the upper-limit parameter BEFORE YOU TAP THE SCREEN (caps for emphasis).
parameter maximum won’t change beyond initial setup and some how values affected by it are loss gradually if you were to persistently tap outside the parameter/output section of the screen.
init function results:
Starting it with a 0 minimum? Makes 1 its maximum unless you set it up in a separate class init that’s only accessed by way if special condition change the upper-limit parameter BEFORE YOU CHANGE THE PARAMETER (caps for emphasis).
However parameter maximum still won’t change beyond the initial setup.
On a side-note I quite like the way you don’t have to tap the screen to update everything with it in the init function.
I just wish there was some other way to get it to recognize that one parameter’s upper-limit has changed