# Actions on points with variable coordinates

**URL:** <https://cl.desmos.com/t/actions-on-points-with-variable-coordinates/7575>\
**Category:** Questions\
**Created:** [December 5, 2024, 1:33pm UTC](https://cl.desmos.com/t/actions-on-points-with-variable-coordinates/7575 "2024-12-05T13:33:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christopher\_Young](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/christopher_young/32/6078_2.png) [@Christopher\_Young](https://cl.desmos.com/u/Christopher_Young)\
**Post date:** [December 5, 2024, 1:33pm UTC](https://cl.desmos.com/t/actions-on-points-with-variable-coordinates/7575/1 "2024-12-05T13:33:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [December 5, 2024, 1:38pm UTC](https://cl.desmos.com/t/actions-on-points-with-variable-coordinates/7575/2 "2024-12-05T13:38:15Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Guzman\_Tierno](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/guzman_tierno/32/6149_2.png) [@Guzman\_Tierno](https://cl.desmos.com/u/Guzman_Tierno)\
**Post date:** [December 5, 2024, 2:28pm UTC](https://cl.desmos.com/t/actions-on-points-with-variable-coordinates/7575/3 "2024-12-05T14:28:29Z")

</div>

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](https://www.desmos.com/calculator/gb5kkhjltk)

it works fine for me, did I not get something right?

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [December 5, 2024, 2:55pm UTC](https://cl.desmos.com/t/actions-on-points-with-variable-coordinates/7575/4 "2024-12-05T14:55:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Guzman\_Tierno](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/guzman_tierno/32/6149_2.png) [@Guzman\_Tierno](https://cl.desmos.com/u/Guzman_Tierno)\
**Post date:** [December 5, 2024, 3:23pm UTC](https://cl.desmos.com/t/actions-on-points-with-variable-coordinates/7575/5 "2024-12-05T15:23:26Z")

</div>

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](https://www.desmos.com/calculator/y97a3rms1v)

---

<div class="post-metadata">

**Author:** ![Guzman\_Tierno](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/guzman_tierno/32/6149_2.png) [@Guzman\_Tierno](https://cl.desmos.com/u/Guzman_Tierno)\
**Post date:** [December 5, 2024, 3:37pm UTC](https://cl.desmos.com/t/actions-on-points-with-variable-coordinates/7575/6 "2024-12-05T15:37:22Z")

</div>

Or …  
you could have an image that’s cliccable,  
hiding a point that is draggable:  
[https://www.desmos.com/calculator/vmna3bs7p4](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 …

---

<div class="post-metadata">

**Author:** ![Christopher\_Young](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/christopher_young/32/6078_2.png) [@Christopher\_Young](https://cl.desmos.com/u/Christopher_Young)\
**Post date:** [December 5, 2024, 9:41pm UTC](https://cl.desmos.com/t/actions-on-points-with-variable-coordinates/7575/7 "2024-12-05T21:41:35Z")

</div>

Thank you all for your help
