Arts
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.

answer
Answers: 2

Other questions on the subject: Arts

image
Arts, 22.06.2019 22:00, alizeleach0123
Most flexible painting medium, used to create both thin, polished layers and thick, gestural brushstrokes
Answers: 1
image
Arts, 23.06.2019 16:30, ofmiceandkj1
Opera combines music with which of the following
Answers: 1
image
Arts, 24.06.2019 05:10, deojahnaeb37
Why did emerson most likely include the quotation from john brown speech
Answers: 3
image
Arts, 24.06.2019 06:30, sajdshjad751
Most of the written music that has been preserved from the middle ages is a. sacred. b. for flute and guitar. c. polyphonic. d. dance music.
Answers: 2
Do you know the correct answer?
40 points xtra Features
For this lab, you will be adding features to your Space Invaders gam...

Questions in other subjects:

Konu
English, 24.11.2019 07:31