Saturday, August 8, 2020

Start and Stop - ALICE Program

 Stop and Start

Choose a ride object other than the carousel from the Amusement Park gallery that moves in a circular pattern (a round-and-round manner, like the Ferris wheel). Create a method that performs an animation appropriate for the ride object selected. Then, create a way to start and stop the ride using the While something is true event.

Start and Stop


Solution:

Add a button to the world to start and stop the ferris wheel animation. The button toggles the state, one click starts the animation, the next click stops it. And the animation runs infinitely.

This question is to teach how to use repetition, loops and events.

See the attached video created using Alice 2.5 for this program, using the actual source code

Contact me @ allassignmenthelp@gmail.com for the comprehensive step-by-step guide on how to create this game in ALICE as well as the final source code. I can modify the program if you would need any changes.