Scratch Module 2 Week 5 - Clone Wars
A proper old-skool space shooter this week, and surprisingly easy to make. I've changed the sprites for mine, and added lives, a high score and a restart button - see if you can beat the record!
There are a lot of places in these projects where you have to solve a problem yourself, and there isn't always a 'right' answer. Using a wait block to put gaps between the lightning, for example. So your code might look a bit different to mine.
You might notice that the green, tentacleless (is that a word?) jelly at the top of the screen doesn't work anything like the bat in the original code: It comes and goes, like the spaceship in the original Space Invaders, and you can shoot it. So be mindful if you're copying the code below, as you might end up with something that behaves quite differently.
You can see most of my code in the boxes below. First is the bit I put on the stage, to reset a few variables and to make things faster over time. I might have put more stuff on here, but the Scratch website is down again. Let's hope they fix it in time for the lesson!
You probably don't want to look at this bit, it's all a bit complicated and took me ages to get working. And it's not at all like the bat in the project. But in case you're interested, here's my green jellyfish
Finally, I don't like all these variables cluttering up the screen, so here's how I did the text splashes that tell you how many lives you've got left.