We also will be adding a variable to keep track of the highest score achieved
Then click on the enemy sprite of your choice. I chose Butterfly 2.
The Direction setting has an option for facing only left and right
The main enemy sprite will not move and be hidden to serve as a starting location, while the clones will be the visible ones trying to hit the player
This code will make the main sprite start in the correct place hidden and randomly spawn clones
This will make the clones appear and move to the left
This will make the enemy clones disappear once they reach the left edge
We should see enemy clones every so often that look like so:
This will reset the score if the enemy touches the player
This will destroy the enemy and add one to the score if an arrow hits the enemy
Check to see if shooting an enemy gives you one point and being hit by an enemy resets your points to zero
Intro to Scratch: 1st/2nd Grade
Created about 1 month ago
Teach coding to your students with MVCode Teach
MVCode offers an integrated product designed to teach coding to students.
Learn more about MVCode Teach