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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!