Let s start by making a pencil that can be used to draw on the stage.

Similar documents
Let s start by making a pencil, that can be used to draw on the stage.

In this project you ll learn how to create a platform game, in which you have to dodge the moving balls and reach the end of the level.

Memory. Introduction. Scratch. In this project, you will create a memory game where you have to memorise and repeat a sequence of random colours!

In this project, you will create a memory game where you have to memorise and repeat a sequence of random colours!

Create Your Own World

Scratch for Beginners Workbook

In this project you ll learn how to code your own musical instruments!

Lost in Space. Introduction. Scratch. You are going to learn how to program your own animation! Activity Checklist.

Rock Band. Introduction. Scratch. In this project you ll learn how to code your own musical instruments! Activity Checklist.

In this project you ll learn how to create a game, in which you have to match up coloured dots with the correct part of the controller.

Open the Tech Toys Scratch project. Your club leader will give you a copy of this project, or you can open it online at jumpto.cc/toys-go.

In this project you ll learn how to create a times table quiz, in which you have to get as many answers correct as you can in 30 seconds.

Add in a new ghost sprite, and a suitable stage backdrop.

Create Your Own World

Create a game in which you have to guide a parrot through scrolling pipes to score points.

Step 1 : Earth and Mars Orbit the Sun

Lesson 8 Tic-Tac-Toe (Noughts and Crosses)

Fireworks. Level. Introduction: In this project, we ll create a fireworks display over a city. Activity Checklist Follow these INSTRUCTIONS one by one

Brain Game. Introduction. Scratch

Creating Computer Games

GAME PROGRAMMING & DESIGN LAB 1 Egg Catcher - a simple SCRATCH game

Create a Simple Game in Scratch

Starting from LEARNER NOTES edited version. An Introduction to Computing Science by Jeremy Scott

You are going to learn how to create a game in which a helicopter scores points by watering flowers in the city.

Clone Wars. Introduction. Scratch. In this project you ll learn how to create a game in which you have to save the Earth from space monsters.

Assessment. Self Assessment. Teacher Assessment. Date Learning Objective(s) Achievement or. NC Level: Game Control Student Booklet P a g e 1

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. Kinect2Scratch Workbook

Creating a Maze Game in Tynker

Game Making Workshop on Scratch

Pong Game. Intermediate. LPo v1

Introduction to Turtle Art

Adding Fireworks To A Photo With Photoshop

Fish Chomp. Level. Activity Checklist Follow these INSTRUCTIONS one by one. Test Your Project Click on the green flag to TEST your code

Programming I (mblock)

Part II: Number Guessing Game Part 2. Lab Guessing Game version 2.0

a. the costumes tab and costumes panel

In this project you ll learn how to create a game in which you have to save the Earth from space monsters.

ChatBot. Introduction. Scratch. You are going to learn how to program your own talking robot! Activity Checklist. Test your Project.

Creating Photo Borders With Photoshop Brushes

Computer with Scratch program.

Pong! The oldest commercially available game in history

The original image. As I said, we ll be looking at a few different variations on the effect. Here s the first one we ll be working towards:

BORDERS AND FRAMES - DROP SHADOW

Project 1: Game of Bricks

Introduction to programming with Fable

In this project we ll make our own version of the highly popular mobile game Flappy Bird. This project requires Scratch 2.0.

Lesson 2 Game Basics

ADDING FIREWORKS TO A PHOTO

The original image. The final rainbow effect.

Explore and Challenge:

Before displaying an image, the game should wait for a random amount of time.

Teaching Kids to Program. Lesson Plan: Interactive Holiday Card

How to do automatic horizontal background scrolling in Scratch

Programming with Scratch

Figure 9.10 This shows the File Scripts menu, where there is now a new script item called Delete All Empty layers.

Overview. The Game Idea

Scratch Programming Lesson 13. Mini Mario Game Part 4 Platforms

COMPUTING CURRICULUM TOOLKIT

Step 1: Select The Main Subject In The Photo

The original image. Let s get started! The final rainbow effect. The photo sits on the Background layer in the Layers panel.

Photoshop CS6 automatically places a crop box and handles around the image. Click and drag the handles to resize the crop box.

How to Create Website Banners

04. Two Player Pong. 04.Two Player Pong

Pong! The oldest commercially available game in history

Copyright 2017 MakeUseOf. All Rights Reserved.

The original photo. The final result.

AIM OF THE GAME GLACIER RACE. Glacier Race. Ben Gems: 20. Laura Gems: 13

Digital Imaging and Photoshop Fun / Marianne Wallace

Fantasy Cartography with Adobe Photoshop: Adapted for Gimp

Using Adobe Photoshop

5 Masks and Channels

Solidworks Tutorial Pencil

Try what you learned (and some new things too)

Fotini. Software User s Guide

Module. Introduction to Scratch

Creating a Watercolor Painting From a Photo. Open the photo you want to appear to be a watercolor painting. I am using the photo below:

Parallax Scrolling Tutorial Created in Drogheda by Seamus Minogue and updated for Clonakilty CoderDojo 15/06/2012 PARALLAX SCROLLING

Sketch-Up Project Gear by Mark Slagle

Census Taker User Guide

Where's the Treasure?

Rendering a perspective drawing using Adobe Photoshop

Kodu Game Programming

PHOTOSHOP. Introduction to Adobe Photoshop

Whack-a-Witch. Level. Activity Checklist Follow these INSTRUCTIONS one by one. Test Your Project Click on the green flag to TEST your code

7.0 - MAKING A PEN FIXTURE FOR ENGRAVING PENS

How to Build a LimeSurvey: The Basics for Beginners

Flappy Parrot Level 2

In this project you will learn how to write a Python program telling people all about you. Type the following into the window that appears:

Managing Your Workflow Using Coloured Filters with Snapper.Photo s PhotoManager Welcome to the World of S napper.photo

ADDING A RAINBOW TO A PHOTOGRAPH

Sony Soloist will allow you to do all of these same operations digitally, that is to say, on a computer & without a cassette!

PHOTOSHOP PUZZLE EFFECT

1hr ACTIVITY GUIDE FOR FAMILIES. Hour of Code

MIRROR IMAGING. Author: San Jewry LET S GET STARTED. Level: Beginner+ Download: None Version: 1.5

ADDING RAIN TO A PHOTO

INTRO TO LAYERS (PART 2)

ArbStudio Triggers. Using Both Input & Output Trigger With ArbStudio APPLICATION BRIEF LAB912

I have an image of a flower that is entirely in focus. I would like to blur the background to make the flower stand out.

Introducing Scratch Game development does not have to be difficult or expensive. The Lifelong Kindergarten Lab at Massachusetts Institute

CHANGING EYE COLOR IN A PHOTO

Transcription:

Paint Box Introduction In this project, you will be making your own paint program! Step 1: Making a pencil Let s start by making a pencil that can be used to draw on the stage. Activity Checklist Open the Paintbox Scratch project online at jumpto.cc/paint-go or download from jumpto.cc/paint-get and then open if you are using the offline editor. You will see pencil and eraser sprites: 1

As you ll be using the mouse to draw, you ll want the pencil to follow the mouse forever. Add this code to your pencil sprite: when clicked forever go to mouse pointer Test out this code by clicking the flag and then moving the mouse around the stage. Next, let s make your pencil draw if the mouse has been clicked. Add this code to your pencil sprite: Test your code again. This time, move the pencil around the stage and hold down the mouse button. Can you draw with your pencil? 2

Save your project Step 2: Coloured pens Let s add different colour pens to your project, and allow the user to choose between them! Activity Checklist Click on your pencil sprite, click Costumes and duplicate your pencilblue costume. Rename your new costume pencil-green, and colour the pencil green. 3

Create two new sprites, which you will use to select the blue or green pencil. When the green selector icon is clicked, you need to broadcast a message to the pencil sprite, telling it to change its costume and pencil colour. To do this, first add this code to the green selector icon: when this sprite clicke d broadcast green To create the broadcast block, click the down arrow and select new message. 4

You can then type green to create your new message. You now need to tell your pencil sprite what to do when it receives the message. Add this code to your pencil sprite: when I receive green switch costume to pencil-green set pen color to To set the pencil to colour to green, click the coloured box in the set color block, and click on the green selector icon to choose green as your pencil colour. You can now do the same for the blue pencil icon, adding this code to the blue selector sprite: when this sprite clicke d broadcast blue and adding this code to the pencil sprite: 5

when I receive blue switch costume to pencil-blue set pen color to Finally, you need to tell your pencil sprite what costume and pencil colour to choose, as well as clearing the screen, when your project is started. Add this code to the beginning of the pencil s when flag clicked code (before the forever loop): clear switch costume to blue-pencil set pen color to If you prefer, you can start with a different colour pencil! Test out your project. Can you switch between blue and green pens? Save your project Step 3: Making mistakes Sometimes mistakes happen, so let s add a clear button and an eraser to your project! Activity Checklist 6

Activity Checklist Let s add a button to clear the stage. To do this, add the X-block letter sprite to the stage, and colour it in red. Add code to your new cancel button to clear the stage when it s clicked. when this sprite clicke clear d Notice that you don t need to send a message to clear the stage, as any sprite can do it! You have probably noticed that your pencil sprite includes an eraser costume: 7

Your project also includes an eraser selector sprite, right click on it and choose show. This is how your stage should look: You can then add code to the eraser selector sprite, to tell the pencil to switch to an eraser. when this sprite clicke d broadcast eraser When the pencil receives this message, you can create an eraser by 8

switching the pencil costume to the eraser, and switching the pencil colour to the same colour as the stage! when I receive eraser switch costume to eraser set pen color to Test your project, to see if you can clear and erase on the stage. There s one more problem with the pencil - you can draw anywhere on the stage, including near the selector icons! To fix this, you have to tell the pencil only to draw if the mouse is clicked and if the y-position of the mouse is greater than -120 (mouse y > -120 ). Change your pencil s if statement to look like this: 9

Test your project; you now shouldn t be able to draw near the selector blocks. Save your project Step 4: Changing the pencil width Let s allow the user to draw using a range of different pencil sizes. Activity Checklist First, add a new variable called width. If you re not sure how to do this, the Ghostbusters project will help you. Add this line inside the forever loop of your pencil s code: 10

set pen size to width Your pencil width will now repeatedly be set to the value of your width variable. You can change the number stored in this variable by right-clicking on your variable (on the stage) and clicking slider. You can now drag the slider below the variable to change its value. Test your project, and see if you can modify the pencil width. If you prefer, you can set the minimum and maximum value of width that s allowed. To do this, right-click on your variable again and click set slider min and max. Set the minimum and maximum values of your variable to something more sensible, like 1 and 20. 11

Keep testing your width variable until you re happy. Save your project Challenge: Shortcuts Can you create keyboard shortcuts for your commands? For example: b = Switch to blue pen g = switch to green pen e = switch to eraser c = clear screen You could even allow the user to change the pen width with the arrow keys! Save your project Challenge: More pens 12

Can you add red, yellow and black pens to your paint program? Take a look at step 2 above if you ve forgotten how to do this. Remember to add keyboard shortcuts for these new pens! Can you use your pens to draw a picture? 13