A family of enemies
Try itYour own words
A word saves you from repeating steps inside one script. A family saves you from copying a script onto many characters.
A family is one script that lots of characters share. Every character in the family runs it.
The family's script
This is the script your family will share. Press Play
to see what one family member does.
The slime dances, waits 2 seconds, and dances again, for ever.
Make the family in your game
- Press Copy
, at the bottom of the script in the code box above. - Press Open your game here, in the builder below.
- Press the Game button
, under the map. It is the one with the gear. - In Game Settings, find Scripts and press Families
. A script window opens, with a family called Family 1. - Press Rename and call it Dancers.
- Press Code
, and paste the script in. - Press Save
.
Put your jumpers in the family
Do this for each jumper in level 1.
- Press Select
, under the map, and click the jumper. - At the bottom of its settings, press Character scripting
. - In the Family list at the top of the window, pick Dancers.
- Take out everything in the jumper's own script. It does not need it now.
- Press Save
.
Press Play
, under the map. Every jumper dances, and none of them has a script of its own.
This section ticks itself when you press Play
in the code box.

