This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-02-05 19:21:02

Zebra935
Scratcher
Registered: 2010-02-05
Posts: 4

Hi!

Hi! I'm Zebra935. I just downloaded Scratch today, and I am hoping to learn a lot about it. It is perfect because it is much easier that regular script. Thanks

Offline

 

#2 2010-02-05 19:59:08

Greenboi
Scratcher
Registered: 2010-01-30
Posts: 1000+

Re: Hi!

Zebra935 wrote:

Hi! I'm Zebra935. I just downloaded Scratch today, and I am hoping to learn a lot about it. It is perfect because it is much easier that regular script. Thanks

Hi! Welcome to scratch! Do you have any questions?

smile

Offline

 

#3 2010-02-06 01:23:39

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Hi!

Hi there, Zebra935! Hope you enjoy the Scratch program and community.  smile  If you have any questions, just ask around.  wink


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#4 2010-02-06 09:01:38

Zebra935
Scratcher
Registered: 2010-02-05
Posts: 4

Re: Hi!

Yes how do you elongate the screen? I see some games where you can move past the first 'box'

Offline

 

#5 2010-02-06 18:20:07

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Hi!

You mean scrolling, where you walk along a terrain, and the terrain will move? I'll upload some scripts to show you when I'm on a proper computer.  smile


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#6 2010-02-07 00:55:20

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Hi!

Okay, first of all - it isn't a feature with Scratch, you program it yourself. Anyway:

Scrolling has one main variable, Scroll X. This variable records where you are on the area.

There are many ways to do scrolling. Here's the compact way, with two sprites for the terrain. The variables:

Scroll X: The usual variable that keeps track of where you are, nothing big.
Terrain number: The variable that tells the terrain sprites what costume to be in.

http://img171.imageshack.us/img171/6475/39twospritescrolling.png

You need to have several costumes for each terrain sprite; they're going to be the only terrain sprites, so you'll have to re-use them.

There's an easier way to do scrolling, but with many sprites for the terrain. No terrain sprites are re-used - which means that the variable Terrain Number isn't needed.

http://img697.imageshack.us/img697/3214/40manyspritescrolling.png

You'll have noticed one thing we're missing - the script that sets the Scroll X variable! Well, there are two ways: One with velocity, and one without. Here are the two scripts:

http://img194.imageshack.us/img194/2497/41scrollxmovingscripts.png

And that's it. Some tutorials for scrolling:
   archmage's Scrolling Done Right (many-sprite scrolling)
   archmage's Efficient Scrolling Demo (two-sprite scrolling) (not exactly a tutorial, but you can download the project and take a look)


Any questions?

Last edited by Jonathanpb (2010-02-07 23:39:49)


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#7 2010-02-19 11:49:35

chillydog616
Scratcher
Registered: 2010-02-19
Posts: 2

Re: Hi!

hey zebra935 i just joined 2 would you pass on info 2 me??? : )

Offline

 

Board footer