Question
Only APP Inventor!! Show the blocks view 1. Keep the Fish in the Bowl Complete Tutorial 9-3. Review Tutorial 9-5. Expand the Fishbowl project to
Only APP Inventor!! Show the blocks view
1. Keep the Fish in the Bowl
Complete Tutorial 9-3. Review Tutorial 9-5. Expand the Fishbowl project to keep the fish in the bowl. There are different approaches you can take. One might be to find the approximate coordinates to keep the fish in the bowl. For instance, if the Y value falls below a certain number, the fish will be out of the bowl. Use the clocks timer to check coordinates and the manually bounce off an edge if it has gone too far. For example, stop the fish from going too high by having it bounce off of a North edge. Stop to the fish from going too far to the left, right, or bottom in the same manner.
Another approach may be to use clear (no image) ImageSprites outlining the bowl, then use the colliding and bounce events to keep the fish in the bowl. Make sure your ImageSprites are at least a pixel in width.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started