Playing Tag Video

Playing a Game of Tag Video

 

 

Game of Tag, Part 4

Exercise: Game of Tag, Part 4

Continue working on your game of tag.

We want the mouse to react if the player controlling the cat touches or “catches” the mouse. In the last step we showed an example with “Cat” and a “Mouse”. We want the following script to make the “Mouse” sprite say “OH NOs” when it touches the cat.

Forever If

NOTE: A really important thing here is that once we click the green flag, the script above will ALWAYS be running. Compare this to the script below that would only run once when you click the green flag. The functionality above is often called an infinite loop – and can be very helpful when we want something to continue running forever.

if

Make your character say “OH NOs!” when it touches the other character.

X
X