How to create motion
Download
1 / 26

We will paint a new sprite – some ground and a mountain - PowerPoint PPT Presentation


  • 58 Views
  • Uploaded on

How to create motion tweening in Scratch using lists ( tweening is when you specify where the movement will start and end and the computer fills in intermediate frames. We will put a few x and y coordinates into the new feature in Scratch 1.4 called “lists” to make the cat jump over a mountain.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' We will paint a new sprite – some ground and a mountain' - agatha


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

How to create motion tweening in Scratch using lists (tweening is when you specify where the movement will start and end and the computer fills in intermediate frames

We will put a few x and y coordinates into the new feature in Scratch 1.4 called “lists” to make the cat jump over a mountain





We need the cat to go over the mountain. That means the cat will glide through 5 points. We will enter the x and y positions of the points into a list



Manually move the cat through the paces noting its x and y
Manually move the cat through the paces, noting its X and Y coordinates

Type the current X value into the list, click + to add more points





The 2 lists (also known as “arrays”) contain 5 elements. We need to keep track of these with a variable HowManyTimes


Now, you will see a complex script that will step through both lists, gliding the cat between the coordinates

That’s it!

The next slide will show you another useful feature for animation – fade outs from black, just like in the Movie Maker...

Now, you can turn off

The lists on the screen by clearing the checkmarks for the lists...




The script for the black block
The script for the black block: the paint bucket)

Notice, that 5%x20%=100%

Could you also create a fade out to black?


Now, another useful trick – zoom in, just like in a video camera. We will zoom in all objects at once by using a variable and setting all sizes to that variable.

Create a variable called “allSize”

The code blocks for the black box (could be for any sprite, it doesn’t matter)

EXTENSION ACTIVITY:

How would you create a zoom out?


Add a random sprite to see how many objects can grow at once. Here is the code for this sprite.

Remember, you can drag these two blocks to other sprites to save you some time!


Matrix somersault stamp comes from the pen pallete of blocks
“Matrix” somersault (stamp comes from the Pen once. Here is the code for this sprite.pallete of blocks)


Double click on stage we ll need to clear the extra images once the jump is over
Double-click on stage – we’ll need to clear the extra images once the jump is over...

From the “Pen” palette, as well


Talking head – create a sprite Mouth and give it a few costumes for producing various sounds like “o”, “oo”, EE”, etc. Consult your language teacher for the shape of the mouth and its relation to the letter pronounced


Mouth costumes being duplicated
Mouth costumes being duplicated costumes for producing various sounds like “o”, “


We only made three
We only made three costumes for producing various sounds like “o”, “


We ll put the mouth on top of a sprite s face
We’ll put the Mouth on top of a sprite’s face costumes for producing various sounds like “o”, “


Like this
Like this... costumes for producing various sounds like “o”, “


The code for the mouth
The code for the mouth costumes for producing various sounds like “o”, “


The end
The End costumes for producing various sounds like “o”, “

  • Good luck in the competition!

  • Scratch 1.4 files used in the creation of this tutorial. Save them and open in Scratch or BYOB.


ad