# Pause a slider on it's current value at a specific point in time after submit

**URL:** <https://cl.desmos.com/t/pause-a-slider-on-its-current-value-at-a-specific-point-in-time-after-submit/1093>\
**Category:** Questions\
**Created:** [May 31, 2020, 4:30am UTC](https://cl.desmos.com/t/pause-a-slider-on-its-current-value-at-a-specific-point-in-time-after-submit/1093 "2020-05-31T04:30:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mr\_Johnson](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/mr_johnson/32/835_2.png) [@Mr\_Johnson](https://cl.desmos.com/u/Mr_Johnson)\
**Post date:** [May 31, 2020, 4:30am UTC](https://cl.desmos.com/t/pause-a-slider-on-its-current-value-at-a-specific-point-in-time-after-submit/1093/1 "2020-05-31T04:30:34Z")

</div>

I am working on a function mini golf and I want to have a moving obstacle. I have made it so the ball will stop rolling when it strikes an obstacle, but if the obstacle continues to move afterward, the ball path will eventually be clear and the ball will continue to the hole. Everything I try to do ends up with a circular reference. I would love some assistance, as I have been banging my head against the wall for months on this one. Thanks

> **[Super FUN(ction) Mini Golf • Activity Builder by Desmos](https://teacher.desmos.com/activitybuilder/custom/5d715e5d2523d361560fc5d4)**
>
> This is a work in progress

---

<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:** [May 31, 2020, 8:39pm UTC](https://cl.desmos.com/t/pause-a-slider-on-its-current-value-at-a-specific-point-in-time-after-submit/1093/2 "2020-05-31T20:39:44Z")

</div>

So, I’m thinking you might need to use a capture to make this work, and do a predictive calculation for whether the ball will hit obstacle p. (I don’t really want to decipher your variables).  
In your button, capture the bottom of obstacle p. In your graph CL, use lastValue to calculate the location of p\_bottom when the ball reaches p\_left. Then, in your graph, instead of having f(x) display directly, use y=f(x) but with a domain {x\<c}. Conditionally, set c to p\_left if the ball is going to make contact or the end of the grass if it doesn’t.

---

<div class="post-metadata">

**Author:** ![Mr\_Johnson](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/mr_johnson/32/835_2.png) [@Mr\_Johnson](https://cl.desmos.com/u/Mr_Johnson)\
**Post date:** [June 1, 2020, 3:27am UTC](https://cl.desmos.com/t/pause-a-slider-on-its-current-value-at-a-specific-point-in-time-after-submit/1093/3 "2020-06-01T03:27:23Z")

</div>

Thank you! I was able to get it to work. Now I can keep going. Wish me luck!

---

<div class="post-metadata">

**Author:** ![tally](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@tally](https://cl.desmos.com/u/tally)\
**Post date:** [May 3, 2024, 7:55am UTC](https://cl.desmos.com/t/pause-a-slider-on-its-current-value-at-a-specific-point-in-time-after-submit/1093/4 "2024-05-03T07:55:16Z")

</div>

is there some way of doing this without using CL?
