Using Scratch to create educational games

Resources HERE and Games HERE

SCratch Screen

Animating a diagram

With this program want we want to do is to move a sprite in a prepared movement to important features of a diagram. When at a feature there will be a statement displayed before the sprite moves to the next feature.

Sequence
Start
Move sprite
Display statement
Move sprite
Display statement
[Repeat]
Stop

1.  Load a background

1.1.  Create background (ideally 480 x 360 – use IrfanView to resize)

1.2.  Click on Stage

1.3.  Select Background tab

1.4.  Select Import

1.5.  Find file

2.  Load Sprite

2.1.  Find or Prepare Sprite

2.2.  Click on Sprite

2.3.  Click on Costumes Tab

2.4.  Click on Import

2.5.  Edit Sprite using

2.5.1. Click on symbol

2.5.2. Click on Sprite

2.5.3. Click outside screen

3.  Create Script

3.1.  Select Sprite

3.2.  Select Scripts tab

3.3.  Select

3.4.  Drag into Scripts window

3.5.  Move the mouse onto the stage and find the co-ordinates of where you want the sprite to move (bottom right)

3.6.  Select

3.7.  Drag and join to the first block

3.8.  Change the x and y co-ords to those reordered in the last step

3.9.  Select

3.10.  Drag and add below the last block

3.11.  Change Hello! For the text that you want and change the number of seconds

3.12.  Repeat 3.5 – 3.11 as many times as you want

3.13.  Select

3.14.  Add to the last block

4.  Click on to test

Moving a sprite around to detect areas on a diagram

With this program want we want to do is to move a sprite around using the arrow keys to prepared areas of the screen. When the sprite moves over these areas the a statement is displayed.

Control Sequence
If left arrow
Change direction
Move
If right arrow
Change direction
Move
If up arrow
Change direction
Move
If down arrow
Change direction
Move / Detect colours sequence
Start loop
Detect colour
Display statement
[Repeat for as many areas as there are on the screen]

Note blocks can be copied by clicking on the right hand button select duplicate

Moving several sprites around, touching them with the mouse pointer and displaying some text

With this program want we want to do is to move sprites around a screen, When clicked on they will stop and display some text.

This needs to be repeated for as many sprites as needed
Repeat until touching mouse pointer
Move
Wait
If near edge – bounce
Turn 1 degree
If mouse pointer touches then display text /

Load the sprites as before and then by clicking on each sprite

The repeat until block is made by dragging and then dragging into . Select mouse-pointer from the drop down menu.

Again blocks can be copied by Right click and then selecting the sprite you want to copy the program onto.

www.somersetelim.org 5 23/01/2015