How to make a button to start and stop animation

Hoang Hai Nguyen shared this question 10 months ago
Answered

Hello everyone.

I've learned to use Checkboxes to start and stop animation in this post: https://help.geogebra.org/t...

How can i do the same but with Buttons ?

Thanks

Hai

Sorry for my bad English

Comments (5)

photo
2

Use the command StartAnimation(<object>,true) and or StartAnimation(<object>,false) to start and stop the animationn of an object.

Just type these commands when creating a button or add them in the tab scripting of the button afterwards. See how it's done in the file added.

chris

photo
1

Thank you very much!

With your help, I've found a way to to make it with only one button.

photo
1

I wanted to make it easy by splitting them up, but indeed it's much nicier to work with one button and changing caption to the situation

photo
1

also:ImpLegenda(knop1,Se(state,"Start","Stop"))

AvviaAnimazione(C,state)

state=!state

photo
photo
1

Thank you everyone :))

© 2020 International GeoGebra Institute