Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
11Activity
0 of .
Results for:
No results containing your search query
P. 1
Learn Scratch Lesson 15

Learn Scratch Lesson 15

Ratings:

5.0

(2)
|Views: 1,347|Likes:
Published by Jessica Chiang
Lesson 15 of Shall We Learn Scratch Programming EBook
Lesson 15 of Shall We Learn Scratch Programming EBook

More info:

Published by: Jessica Chiang on Jul 18, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

07/10/2013

pdf

text

original

 
Shall We Learn | http://shallwelearn.com
1
Scratch Programming Lesson 15
In this lesson, we will wrap up the Mini Mario game by making it scroll, among otherthings. Also, please go tohttp://shallwelearn.comto downloadMiniMarioLesson13.sb from Scratch Programming Lesson 13.This is the snapshot of the sprite list when the project is opened.
Step 1: Create a Variable to Represent Scrolling Amount 
Create a global variable called scroll to represent the amount of scrolling. WhenMario moves to the right, the scrolling amount decreases, and when it moves to theleft, the scrolling amount increases. If you are unfamiliar of how scrolling works inScratch or in general, please refer to Shall We Learn Scratch Programming Lesson 14.
 
Shall We Learn | http://shallwelearn.com
2Delete “
change x by …”
and replace with “
chang scollX by -2.5
.
Step 2: Make Platforms Scroll 
I am going to split
Platform
sprite into two sprites:
Platform0
and
Platform1
.I will line these two platform sprites side-by-side. When the game starts,
Platform0
islocated at x = 0 or 0 * the stage width (=480). Platform1 is at x = 480 or 1 * the stagewidth.
 
Shall We Learn | http://shallwelearn.com
3Rename
Platform
to
Platform0
. Delete all scripts from
Platform0
and add thefollowing scripts, which are very similar to what we built in Lesson 14, except that Iadded a global variable call
platform0_global_x
.Then make a copy of 
Platform0
and name the copy as
Platform1
. Delete costume
Level2
from
Platform0
and rename costume
Level1
to
Level
and delete costume
Level1
from
Platform1
and rename costume
Level2
to
Level
.

Activity (11)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
cmatthews49 liked this
Gangesh Ghosh liked this
Yogi Patel liked this
dpresident liked this
deb27 liked this
s_sknapp2401 liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->