4.2 LightsOff Tutorial Curriculum Page
- This app presents a new type of event which you haven't encountered before. What is that new event? How often is it triggered?
- The new event that is presented in this app is the image sprite event. This event is triggered every time the user touches the sprite.
- Consider the apps you've developed so far. Can you list all the different events your apps have responded to? What other events do you think an app can respond to? Explore some of the components in App Inventor and see what event handlers they have.
- Based on the apps I have developed so far, all the different events that my apps have responded to include sprite image touch, canvas touch, canvas dragger, location changer, button clicker, screen initializations, clock timer, and many more. Some other events that I think an app can respond to include video players and scanning events. Other event handlers in App Inventor include choosing notifiers, long clicks, camcorder, and many more.
- What are the advantages of writing procedures in programming? Use the procedures you wrote for this app as examples in your response.
- The advantages of writing procedures in programming include that it makes the code simpler and more efficient because the same procedure can be used in the coding in multiple spots with a spot to change all of the data in one place. As shown in the images, the "move to random" procedure can be used in two separate spots. However, if a part of this procedure needed to be changed, I could just go to where the procedure was created to change it for all the spots it's being used.