Colleagues
Thanking you in advance for your help, I’m stuck on using actions.
I create a point on the graph, say (3,2) and assign an action to it. When I click on the point, the action executes just fine. It’s a simple action that adds 1 to a variable.
If, however, I assign variables as coordinates, say (d_x,d_y) to the same point, the action stops working.
Is this something I’m doing wrong or a design feature for actions?
Kind regards
Chris
When using actions, they will define the actual coordinates of the point rather than “rewriting” per se. So, if d_x = 1 and d_y = 2, running the action will simply set the point to (1,2). It may seem limiting, but I believe it’s intentional so calculations and whatnot can be used.
If you want a more dynamic point, there are some ways around that.
Sorry, I’m not sure I understand the problem, I tried to replicate what you explained:
a cliccable point with an associated action (that changes a variable) and whose coordinates are variables …
https://www.desmos.com/calculator/gb5kkhjltk
it works fine for me, did I not get something right?
Wow. I totally misread. The likely issue is you cannot have a draggable point that is also clickable. I’m guessing Drag is on, but will become clickable if you turn Drag off.
Yeah, that’s probably the issue …
you cannot have (by design) a point that is cliccable and draggable …
edit:
messing with sizes you can have sort of both the functionalities:
https://www.desmos.com/calculator/y97a3rms1v
Or …
you could have an image that’s cliccable,
hiding a point that is draggable:
https://www.desmos.com/calculator/vmna3bs7p4
one should make clear in the drawing where to click to drag and where to click for the action …
Thank you all for your help