when The length of the two lines segment as equal,i wanna stop animation,how to do

616947616 shared this question 2 years ago
Needs Answer

when The length of the two lines segment as equal,i wanna stop animation,how to do?


If((p==l),StartAnimation(m,n,false))

-------------------------------------

There is no effect。

Files: 25-2.ggb

Comments (9)

photo
1

b6d7145d4983bfb8ad872fd009344f05

Files: 25-2.ggb
photo
1

another question,as you do,the speed of two slider will more and more slower?The above question should have two moment let the i==p, but the second moment will too slow come because of The smaller speed(i-p)

photo
1

sorry, at moment i do not know other solution

Mi spiace, al momento non conosco altra soluzione.

photo
1

thanks.

photo
photo
1

Hi,

Button1 (start) script OnClick :

StartAnimation(m,n,true)

Button2 (stop reset) script OnClick :

StartAnimation(m,n,false)

SetValue[n,4]

SetValue[m,8]


slider m or n script On UpDate :


If((p==l),StartAnimation(m,n,false))

...

photo
1

thanks a lot,but follow your operating,It doesn't seem to solve my problem,because The above question should have two moment let the i==p,as you do,the second moment Will not be coming for ever,(will stop on the first moment)

photo
1

Ok,

try with just one slider n,

and M = (12 - n, 7)

...

photo
1

thanks the same ,but alfabeta2's method is better,he Isolves half the problem。

photo
© 2022 International GeoGebra Institute