Stop Animation when point A is at (x,y)

ThePi shared this question 3 years ago
Answered

How could I make the animation stop when point A is at (4.5,0) or (8.5,0) or (9.5,0), so the "Win!" text box is displayed until animation is resumed? Also, how would I make a "Lose!" text box appear(then stop animation) when point A touches a wall of the maze?

Please see the attached file.

instructions: press start to make the red dot(point A) start moving down. Use the green "Move" slider to move the dot left and right. Don't touch the walls. Try to get to the bottom of the maze.


Thanks so much,

ThePi

Best Answer
photo

Hola!


Mira el Script que agregué en el punto A "Al actualizar"

Luego pienso cómo puedes hacer el cartel "perdiste" cuando chocas un muro.


Saludos!

Comments (5)

photo
1

bump

photo
2

Hola!


Mira el Script que agregué en el punto A "Al actualizar"

Luego pienso cómo puedes hacer el cartel "perdiste" cuando chocas un muro.


Saludos!

photo
1

Thank you so much!!

i was trying this same thing, but I used [] instead of ()! this helps so much!

photo
photo
1

Thank you so much!!

i was trying this same thing, but I used [] instead of ()! this helps so much!

photo
1

A very nice Game-Ideas for GGB!

.Include:

"Also, how would I make a "Lose!" text box appear(then stop animation) when point A touches a wall of the maze?"

see comment in the attachment.

© 2020 International GeoGebra Institute