New Video Series: Learn how to scale up your code with the power of clones

There is a brand new four-part video series showing you how to harness the power of clones in Hopscotch! You’ll learn how to scale up your projects and build upon an epic Space Invaders game. Download Hopscotch today to try this out!

The videos are available in the Clones unit in the “Learn” tab. You can code along while watching the videos in-app. You can also view them on our YouTube channel.

Part 1: Introduction to the Clone Video Series

The first video is a short introduction to the series, giving an overview of the topics in this series.

Part 2: Recap of the Base Project

In this video, you will learn about the base Space Invaders project and discover how it works. One of the essential coding concepts in this video is message passing among the objects using the “Broadcast Message” block. This is an elegant solution for your projects with many objects that need to react to specific scenarios.

Part 3: Adding More Enemies

In Part 3, you will find out how to add more enemies to your Space Invaders game. This video introduces the basics of cloning using the “Create a Clone” and “When object is cloned” blocks.

It also explores an important aspect of clone behaviour — clones inherit the properties of the object that cloned it at the time of cloning.

Part 4: Shooting Multiple Projectiles

The fourth video is where you learn how to use the “Destroy” block to let the player shoot multiple projectiles at once so that it can take on all the enemies.

That’s it for now. Try out these tutorials today to take your coding skills to the next level! If you have any questions or comments, please let us know at hello@gethopscotch.com.

Previous
Previous

[Completed] Hopscotch Downtime This Saturday March 16, 2024

Next
Next

Introducing Parameters: A Powerful Tool to Level Up Your Code