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

#1 2010-10-10 11:38:38

ob6160
Scratcher
Registered: 2010-10-10
Posts: 500+

ScrollX?

Hi there

I was wondering if anyone knows how to use the scrollx block?

Thanks in advance

Ob6160


http://i45.tinypic.com/2jcygsy.gif

Offline

 

#2 2010-10-10 12:06:14

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: ScrollX?

Scrollx?  You mean as a variable?


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#3 2010-10-10 12:14:07

ob6160
Scratcher
Registered: 2010-10-10
Posts: 500+

Re: ScrollX?

Yes. I just wanted to know how to use it in scrolling game.


Thanks

OB6160


http://i45.tinypic.com/2jcygsy.gif

Offline

 

#4 2010-10-12 18:50:35

johndo77
Scratcher
Registered: 2010-07-30
Posts: 1000+

Re: ScrollX?

Well, on the character's sprite, instead of saying:

"When left key pressed - change x by (whatever speed you want)

you say:

"When left key pressed - change (SCROLLX) by (whatever speed you want)





Then, on a background sprite, you say:

set x position to ((SCROLLX) * (480 * BACKGROUND NUMBER))




I hope this isn't confusing!

Last edited by johndo77 (2010-10-12 18:51:17)


Crizapples

Offline

 

#5 2010-10-13 07:49:57

ob6160
Scratcher
Registered: 2010-10-10
Posts: 500+

Re: ScrollX?

Thanks for the help!

Ob6160.

___________________________

See my blog at oliverspcpages.blogspot.com
See my scratch projects at: http://scratch.mit.edu/users/ob6160


http://i45.tinypic.com/2jcygsy.gif

Offline

 

#6 2011-01-28 16:29:13

Purika
Scratcher
Registered: 2011-01-26
Posts: 100+

Re: ScrollX?

What is scrollX exactly? Can someone please tell me?


https://lh3.googleusercontent.com/-ZlPXbnYAtro/TxRNNopA6XI/AAAAAAAAAvY/worvlbyfCYI/s589/Purika.gif
If I was three birds, I could see myself fly below us!  big_smile

Offline

 

#7 2011-01-28 16:43:19

Earthboundjeff
Scratcher
Registered: 2010-09-28
Posts: 1000+

Re: ScrollX?

It's a variable.
In theory, You could name it anything,
It doesn't have a specified function like the other blocks.
You can make scrolling games by using it to have the Background change costumes.


https://encrypted-tbn0.google.com/images?q=tbn:ANd9GcR1SONrHUmdKZXQNDgtN_vpycOOo-BDMfnlqHZRA1lMpYXhX7Jc

Offline

 

#8 2011-01-28 17:33:32

Purika
Scratcher
Registered: 2011-01-26
Posts: 100+

Re: ScrollX?

Thanks very much!  smile


https://lh3.googleusercontent.com/-ZlPXbnYAtro/TxRNNopA6XI/AAAAAAAAAvY/worvlbyfCYI/s589/Purika.gif
If I was three birds, I could see myself fly below us!  big_smile

Offline

 

#9 2011-08-30 05:11:48

KobyStudios
Scratcher
Registered: 2011-06-30
Posts: 6

Re: ScrollX?

You can check out my project. http://scratch.mit.edu/projects/KobyStudios/2003639

Offline

 

#10 2011-08-30 10:39:34

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: ScrollX?

KobyStudios wrote:

You can check out my project. http://scratch.mit.edu/projects/KobyStudios/2003639

Please do NOT spam. It gets annoying.

@ topic creator The others are right.
Next time, put this in all about scratch if you need help with a problem. wink

Offline

 

#11 2011-08-30 10:43:08

videogame9
Scratcher
Registered: 2008-05-12
Posts: 1000+

Re: ScrollX?

ImagineIt wrote:

KobyStudios wrote:

You can check out my project. http://scratch.mit.edu/projects/KobyStudios/2003639

Please do NOT spam. It gets annoying.

@ topic creator The others are right.
Next time, put this in all about scratch if you need help with a problem. wink

Spamming is posting the link over and over again.

Or posting the link when it has nothing to do with the topic.

The project, "Escape", is a scrolling game that uses scrollx.

The topic creator could download the project and look at the scripts to see how scrollx works.


http://img641.imageshack.us/img641/4118/newvg9logo.png
QUOTE OF THE RIGHT NOW: why are we arguing about dead babies? -videogame9

Offline

 

Board footer