ScratchData LogoScratchData
Back to TheLogFather's profile

Firing clones from clones

THTheLogFather•Created May 15, 2014
Firing clones from clones
126
102
3964 views
View on Scratch

Instructions

This is a very simple little game designed to demonstrate a method for making clones fire things that are also clones. Click green flag to (re)start, move the green orb with the mouse, don't let the laser bolts hit it - see how long you can survive. You get a point for each laser bolt that you escape. Apologies if, like me, you have a ~2012 MacBook which suffers from black flickering whenever the project uses colour effect :(

Description

The shooting method used here has the turrets and laserbolts as clones of the same sprite. When a turret shoots a laser, all it has to do is temporarily set the "Type" local variable, then create a clone. The new laserbolt clone is placed at the same location as the clone that created it - i.e. right where it's meant to be! So no need for lists, or global variable with co-ordinates. There are plenty of simple enhancements that could be added to make the game a bit more interesting - such as bonus objects, extra health, homing missiles, cloud hi-score table, etc. But the purpose of this is to be a simple demo - so feel free to remix and add those things yourself! :)

Project Details

Project ID22222215
CreatedMay 15, 2014
Last ModifiedMay 16, 2014
SharedMay 16, 2014
Visibilityvisible
CommentsAllowed