Continuous Checking

Marc 'Zeke' Kossover shared this question 2 years ago
Answered

I have a point that is moving around the circumference of a circle by using a slider. Other points are drawn fixed on that circumference.

I'd like a sound to be played when the moving point touches one of the fixed points. Is there a way to do this?

Thank you in advance for your help.

Zeke

Comments (2)

photo
1

Try something like this:

l1={A,B,C}
then in the slider's OnUpdate script


If(Distance(P,l1)<0.1, PlaySound(...))

See https://wiki.geogebra.org/e... for the syntax

photo
1

Thank you! That was very helpful.

© 2023 International GeoGebra Institute