Clone Video Series — Space Invaders

We have a new video series showing you how to use clones, while developing a cool Space Invaders game in Hopscotch.

Clone Video 1

This first video is an overview of what’s to come in the series. (When the whole series is out, it will be there to show you where to find more on a particular sub-topic of clones.)

Clone Video 2

This video goes through the code in the base project, for the Space Invaders game.

Project Link:

It’s also available in the app, in the Clones unit under the Learn tab.

Clone Video 3

This introduces the basics of cloning (‘Create a Clone’ and ‘When object is cloned’ blocks) and the new clone behaviour — clones inherit the properties of the object that cloned it, at the time of cloning.

We also look at how to add more enemies to the Space Invaders project.

Project link:

Clone Video 4

This video introduces the Destroy block, and provides some information on clone index and total clones.

We look at how to let our player shoot multiple projectiles at once.

Project link:

20 Likes

That sounds super cool!

9 Likes

That sounds awesome!

8 Likes

Looks amazing. And it looks like it’ll be an epic series, since with clones, there are numerous things to keep in mind

  • Max Clone Limit per scene (4096). Most won’t have to worry about this if they only do small things.
  • How to make use of clone index when objects are destroyed and re-cloned (since clone index values are never reset).
  • (In the case of multiple scenes) How to resolve excessive cloning and/or glitches caused by scene changing.
8 Likes

Wow, this is awesome! I haven’t watched this video yet (I will soon!) but it’s great that you’re teaching hopscotchers about clones! space invaders is pretty cool :sunglasses:

6 Likes

Clone Video 2

This video goes through the code in the base project, for the Space Invaders game.

Project Link:

It’s also available in the app, in the Clones unit under the Learn tab.

https://c.gethopscotch.com/p/11w4lk8311

(Constructive feedback is welcome.)

5 Likes

Clone Video 3

This introduces the basics of cloning (‘Create a Clone’ and ‘When object is cloned’ blocks) and the new clone behaviour — clones inherit the properties of the object that cloned it, at the time of cloning.

We also look at how to add more enemies to the Space Invaders project.

Project link:

4 Likes

Clone Video 4

This video introduces the Destroy block, and provides some information on clone index and total clones.

We look at how to let our player shoot multiple projectiles at once.

5 Likes

(For people who were around for the original intro video — the scope of the series is 4 videos rather than the original 6, as we’re mainly aiming to help people get started with clones. So this video wraps up the series.)

5 Likes

thank you for the series - they’ll be helping unconfuse people about clones for many years to come!

6 Likes