subject
Arts, 06.12.2021 18:50 abelxoconda

40 points xtra Features
For this lab, you will be adding features to your Space Invaders game from the unit.

If you closed your game, go back to: https://beta. scratch. mit. edu/.

Click Try it! Then click File > Upload from my computer and locate where you saved your game in your file system.

Also open a word processing document where you can record your attempts to create these extra features. In case your scripts do not end up working, you will still submit this document to show what you tried to accomplish.

Step 1: Cloning
Let’s make our shooter game a bit more interesting by making a “clone” of our enemy so that we can have two at once to shoot at!

Right click on your enemy sprite and choose duplicate. Now you have another enemy with the same script inside. Rename this enemy new enemy 2.

Even though you renamed the enemy, the script related to new enemy 2 still thinks it is attached to your original enemy. You’ll need to make two changes inside the new enemy 2 script in order for it to be applied to your new, cloned enemy. Describe what you believe those changes need to be in your word processing document. Then make those changes in your script.
Now that we have a second enemy, you will need to make some changes to the script that is attached to your backdrop. Look at that code. You will need to add a block so that your second enemy appears. Describe what that block is and where to find it (type this answer into your word processing document). Then make the change in your backdrop script in your game.
Now that you have both enemies appearing, let’s make a random amount of time pass from when the first enemy falls and the second one falls, just to keep the player guessing. The time span for this random amount of time will be from 0.1 to 2 seconds. You will need two blocks to complete this code. Describe these blocks and where to find them (type this answer into your word processing document). Then make the change in your backdrop script in your game.
Step 2: Make the Spaceship more responsive
Notice how the spaceship is not very responsive to the left and right arrows being pressed? Take care of that lag by making a couple of changes to our spaceship script.

Instead of using the when arrow pressed block to describe right and left arrow movement, explain how you can you use if/then blocks inside a forever loop. You will need two if/then blocks, one for each direction of movement. Think about what block you will put in the if part of the statement and what should be the result in the then part of the statement. Type this into your word processing document. Then make the changes to your spaceship script.
When you have finished, remember to save your game to your computer and then submit your game file along with your document. Name it Space Invaders 2.

ansver
Answers: 2

Another question on Arts

question
Arts, 22.06.2019 15:50
What is the primary goal of propaganda art
Answers: 2
question
Arts, 23.06.2019 01:30
Which of the following is not a basilica-plan structures a. old saint peters b. sant’apollinare nuovo c. santa costanza d. santa sabina
Answers: 2
question
Arts, 23.06.2019 02:30
Describe a religion that is not your own. choose from one of the following religions: ancient egyptian belief, hinduism, greek or roman polytheism, native american religion, buddhism, taoism, judaism, christianity, or islam. you must choose a religion that is not your own. describe three features or tenets of the chosen religion. mention any written works and prophets. share how this religion compares to your religion or beliefs, even if you do not have a chosen "religion."
Answers: 3
question
Arts, 23.06.2019 08:00
If i were writing an essay about barrington irving, what would be a good hook sentence to start my introduction? write a hook sentence that will grab your reader's attention and get them to want to read more about barrington.
Answers: 1
You know the right answer?
40 points xtra Features
For this lab, you will be adding features to your Space Invaders gam...
Questions
question
World Languages, 27.11.2019 21:31
question
Mathematics, 27.11.2019 21:31
question
History, 27.11.2019 21:31
Questions on the website: 13722363