Lesson 1

171 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
171
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Lesson 1

  1. 1. How do I program acomputer?
  2. 2. Three basic ideas1. Variables2. Branching3. LoopingThat’s all there is to it. We’ll exploreusing a program called Scratch.
  3. 3. Sprites• Sprites are little pictures• We can animate them by changing the picture quickly• We can move, rotate, scale, hide, flip …..• This is how we create movement for our world.
  4. 4. This is sprite1,it comesalready loadedin the SPRITELIST and hasalready beenplaced on theSTAGETask: Right Click and delete sprite1 fromthe SPRITE LIST
  5. 5. Task: Click on the insert new sprite button.
  6. 6. Task: Select the sprite called cat2 from theanimals folder.
  7. 7. Task: Rename the sprite and call it cat.Remember to always call new sprites sensiblenames!
  8. 8. Task: From the control menu, dragand drop this rule into the SCRIPTSAREA
  9. 9. Task: From the control menu, drag and dropthe forever rule into the SCRIPTS AREA andjoin it together.Compatiblerules canbe joinedtogether intheSCRIPTSAREA
  10. 10. Task: Fromthe motionmenu, dragand drop thepoint towardsrule into theSCRIPTSAREA and joinit inside theforever ruleTask: choose mouse pointer from thedrop down list.
  11. 11. Task: change number of steps to 3.Task: Fromthe motionmenu, dragand drop themove 10steps rule intothe SCRIPTSAREA and joinit underneaththe pointtowards rule.
  12. 12. Task: run your program by pressing thegreen flag.
  13. 13. Notice how the co-ordinates change asyou move the mouse and sprite.

×