Tutorial
Write your own Raspberry Pi game
Step 05 — Response
That tells Scratch to look out for the Up key, but now we need to assign the response. Go to the Motion category and drag the “change y by 10” block into the “if” block. If the spacebar then Up arrow is pressed, our shark now moves. You can now repeat this for the Down arrow, replacing the “change y by” value to -10.advertisement
Latest Features
- The world's most powerful computers
- Rise of the code schools
- Create a Python game for the Raspberry Pi
- Develop your skills in ICT
- Buyer's guide to tablets
- BenQ MW860USTi vs SMART LightRaise 40wi
- Buyer's guide to foreign language software
- Buyer's guide to all-in-one inkjet printers
- Buyer's guide to high-performance media PCs
- Five inspiring websites for ICT projects
- Hands on with the new Google Maps
- Nokia Lumia 925 review: first look
- Why I won't subscribe to Creative Cloud
- GoPro camera strapped to a remote-control helicopter: the ultimate boy's toy
- Acer Iconia A1 review: first look
- Acer Aspire P3 review: first look
- Acer Aspire R7 review: first look
- How we produce the PC Pro podcast
- Google Now draining iPhone battery
- The government website that doesn't work with IE, Chrome, Firefox, Safari, Macs or smartphones
advertisement
Sponsored Links



















