BlocosIA Wiki Editor

Clone rain

Medium · Create copies of the sprite in different places on the stage.

Interactive tutorial: the editor checks each step by itself.

  1. Choose a sprite and drag "when flag clicked".
  2. In Control, snap "repeat 10" below the flag.
  3. Put "create clone of … at x: y:" inside "repeat".
  4. In Operators, drag "pick random 1 to 10" into x and change it to -200 and 200.
  5. Click the flag and watch the clones appear!

The blocks of the finished program

• evt_bandeira
• ctl_repetir [VEZES: 10]
  • ctl_criar_clone_xy [X: (op_aleatorio), Y: (op_aleatorio)]

Open in the editor