Create two sprites, have them randomly move around the screen (see challenge 1), when they touch have them stop (or react in some other way)
For this challenge i have used a shark and a fish. The shark will react, when touching the fish, by switching costumes and then returning to its previous design. the fish will react by gliding away from the shark.
The shark's script looks like this:
The fish's script looks like this:
The following are some snapshots of what happens, after adding the scripts to the sprites.
No comments:
Post a Comment