Dear Desmos CL folks,
I’m trying to make a game involving getting points by catching a ball. Using a ticker graph-element, I can get variables to update, e.g. increase the score by 1 if the ball has been caught:
s_core → s_core+1 {c_aught=1}
That’s fine, there are quite a few variables that I want to update, so the Run line next to the ticker ends up being a long unwieldy list of comma-separated updates that falls off the edge of the visible part of the screen. That’s inconvenient, and it also strikes me as likely to lead to bugs that will be hard to find and fix.
I’m guessing it ought to be possible to move some of that long list of ticker updates into the graph’s CL script, so that it’s easier to see, edit and keep them tidy. However, I haven’t been able to figure out how to do that. I get the impression that CL scripts themselves maybe can’t do condition-dependent variable updates? I’m not sure about that.
The only other way I know of to do condition-dependent updates is via actions that execute when the user clicks on something, but I want these updates to happen automatically, without requiring any user input.
Is that possible? Or do I need to squish all the desired updates into one long multi-comma ticker run-line?
Any help greatly appreciated!
Raj