stop

cristina shared this question 5 years ago
Answered

If(DistanciaVela==0, StartAnimation(DistanciaVela, false))

I have that as a condition to stop my animation when it takes the value 0.

I know I can choose the option to repeit the animation on the slider once but only in increment.

At fisrt I did not have any idea of how this worked and I made the animation decrement. The slider goes from value 5 to 0.

And I want it to stop when It takes the value 0.


I have tried many things and I do not know what to do.


I will be really grateful for your help

Comments (2)

photo
1

lo más fácil es que definas otro slider llamado por ejemplo tiempo desde 0 a 5 incrementando una vez y entonces redefinas DistanciaVela=5-tiempo y en el script del botón que repite la acción resetees tiempo y depués actives su animación

así no tendrás que rehacer todo el trabajo. Supongo que evitar el hacerlo de nuevo desde el principio era el problema

photo
1

Muchísimas gracias, por fin lo he conseguido

photo
© 2023 International GeoGebra Institute