Monday, February 18, 2008

How to make a race in Scratch:

1) Click on the tab: Costumes. Then click on the tab: Import. Choose a racing sprite and then click OK. Go back into the Costumes tab and pick the same animal but with a different movement. Now click on the tab: Choose New Sprite From File. Choose a different racing sprite and click OK. Go back into the Costumes tab. Click on the tab: Import. Pick the same animal but with a different movement.



2) Reduce sprite size by first finding: Set Size. Place this in the script and write 40% in the space.

3) Reapeat step 2 for the other sprite.

4) You can now get it moving and change its costume by
finding these tabs and placing them in this order:

5) Repeat step 4 for the other sprite.

6) Make the sprite bounce off the edge by first finding: motion> if one edge, bounce. Place this in the script under the whole movement script in step 4. Adjust the sprites' rotation style for back and forward motion so they aren't upside down. Repeat all this for the other sprite.


7) Find: Randomise motion Numbers> pick 1 to 10. Place this in the script next to 'move' from step 4. Place another one in the script next to the second 'move' from step 4. Repeat all this for the other sprite.

8) Draw a finish line by first finding: when clicked. Place this on script. Click on the tab: Choose New Sprite From File. Pick a sprite that is different from your other two sprites and click OK. Place the sprite in a corner on the left-hand side of the page. Find: Pen down. Place this in the script. Find: Set pen size. Place this in the script. Set it to 20 or to your likeness. Find: Move. Place this in the script. Write a number for the amount of steps the sprite will move. Find: Point in direction. Place this in the script and make the direction up.



9) Now you have to make the race finish when one sprite crosses the finish line by first finding: if else. Place this on the script underneath 'forever' from step 4. Find: touching (colour cube). Place this in the script next to 'if'. Find: Say for 2 secs. Place this in the script under 'if'. Write "I Win!" in the space. Click on your finish line and then click on the colour cube. Find: Stop all. Place this in the script under 'say "I Win" for 2 secs'. Place the whole movement script from step 4 underneath "else". Repeat all this for the other sprite.






































5 comments:

Unknown said...

it's great, only one complaint - the writing is too small

ask me about how to edit the HTML

AliceIsOuttaWonderland said...

While you changed the words and wrote it really interestingly, a bit more information about where to FIND the buttons would be good, as newbies to the program would be a tad confused. I loved the choice of Sprite costumes, nice work.

Lisa said...
This comment has been removed by the author.
Lisa said...

EXCELLENT WORK ADELA :D
very impressive
love it
the bestt :D:D

lolll. said...

Very good!
easy to follow.
lot's of text
so it is understandable. (Y) well done.

:p