11.16.2007

Scratch: Constantly Moving Object



At the end of this assignment you will have an object that travels across the screen and spawns again where it started.

Your scripts area should look like my picture above (click the picture to make it bigger). To get the "Pick random" (green) button, go to the numbers tab. To get the "touching edge" button go to the sensing tab.

11.09.2007

Scratch II - Custom Animations

Next week we are going to start making our own games. So, over the weekend be thinking about what you want to put in it. Some basic rules are:

1. No blood and gore.
2. If you are "killing" things they should not be human.

Think about the games that you really like, and why you like them. What will make your game different?

Assignment



1. Open Scratch
2. With the scissors, delete the cat.
3. Click the button that looks like a paint brush with a star behind it.
4. Paint a stick figure standing up.
5. Click on the "Costume" tab.
6. Click "Copy."
7. There are now 2 pictures. Click edit on the 2nd one.
8. Erase his arms and legs and draw them in a different position.
9. Click the "Scripts" tab.
10. Click the Control button.
11. Drag the block "When Space key pressed" into the scripts area.
12. Click on the "Looks" button.
13. Drag the block "Next Costume" into the scripts area and attach it to the previous block.
14. Click on the "Motion" button.
15. Drag the block "Move 10 Steps" into the scripts area and attach it to the previous block.
16. Try making more costumes and more controls - see what you can make your character do.

11.04.2007

Scratch Assignment 1

Today we are going to start to learn how to make our own games and animations.

Open Scratch

In the program, to the left you see a bunch of blocks that look like legos. These are what you will use to tell the computer what to do with different sprites.

The buttons at the top are block categories.


In the middle, we have 3 tabs - scripts, costumes, and sounds.

A picture is displayed at the top letting us know which sprite we are programming. Always names your sprites.



Assignment - Animation



1. Click Control


2. Drag the block named "When Space Key Pressed" to the Scripts area.


3. Click the arrow beside "Space" and choose "Right Arrow."


4. Click Looks
5. Drag in "Switch to costume" and attach it to the previous block.
6. Change the option "costume 1" to "costume 2."
7. Click Motion
8. Drag in "Move 10 Steps" and attach it to the previous blocks.
9. Change it to 20.
10. Click Control.
11. Drag in "Wait 1 second" and attach it to the previous blocks.
12. Change "1" to ".1"
13. Drag in "Switch to costume" and attach it to the previous block.

At the end it should look like this:


Bonus: Make it so when you push the left arrow, the character move left.
Hint: Try using a negative (-) in front of your number.

Once you are done, play around in the program and see what other things you can do.

Scratch Intro

Scratch is a simplistic programming language that allows the user to do some pretty cool things.

http://scratch.mit.edu

At this page you can download the program on your home computer for free. You can also see what people around the world are making by clicking on the "Projects" link.

You can make animations, games, interactive art and much more.

Because there are so many of you and so little time, we need to be as efficient as possible. We need to help each other. So the rule is, before you ask me:

1. Try thinking of different ways to solve your problem
2. Look in the help file
3. Ask the people sitting beside you.

Really good idea:
Open up one of the example projects that has a similar action you want and click on the sprites view what is going on.

Remember to save often!


Also, save in the proper format - Grade_Name_Name of project