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

#1 2012-11-22 22:17:29

frizzlepuss893
Scratcher
Registered: 2011-06-10
Posts: 100+

Scrolling help

There are many things that came to me easily while first learning scratch: Scrolling is not one of them. I want to make a background that is basically the sky, and then sprites at the bottom that would be, well, the ground. I also have giant text in the middle that would be my title. How can I make the sprites that are on the ground scroll, without me doing anything? Also, how can I control the speed of the scrolling? Thanks in advance.  big_smile


"Wait, what?"-Frizzlepuss. Jumpathon 5! play now!
The scratch song! Congratulations scratch! 2 million projects!

Offline

 

#2 2012-11-23 11:51:29

30-1
Scratcher
Registered: 2012-08-08
Posts: 100+

Re: Scrolling help

Here are two articles form the wiki: http://wiki.scratch.mit.edu/wiki/Scroll … ng_Sprites for scrolling with multiple sprites, or using one sprite for scrolling: http://wiki.scratch.mit.edu/wiki/Scroll … ipt_method. The second link is better IMO because you can make a big project without too many sprites. And these scripts

if <key [right arrow v] pressed?>
 change [scrollx v] by (-5) // change this number to control speed
end
if <key [left arrow v] pressed?>
 change [scrollx v] by (5) // change this number to control speed
end
These numbers change the speed. Changing 5 to a bigger/smaller number will change speed.
Hope this helps. If it does not I'm sure you will find something helpful on the wiki.  smile

Last edited by 30-1 (2012-11-23 11:57:27)


http://i.imgur.com/ocOya7x.gif
I. Text I Based I Games I

Offline

 

#3 2012-11-23 20:46:17

frizzlepuss893
Scratcher
Registered: 2011-06-10
Posts: 100+

Re: Scrolling help

This DOES help thnx!


"Wait, what?"-Frizzlepuss. Jumpathon 5! play now!
The scratch song! Congratulations scratch! 2 million projects!

Offline

 

Board footer