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

#1 2008-01-11 18:13:46

lilhd
Scratcher
Registered: 2007-12-03
Posts: 26

I DONT GET SCROLLING BACKGROUNDS AT ALL please help

I dont understand scrolling backgrounds even after looking at like all the tutorials could someone explain and put code on here

Offline

 

#2 2008-01-11 18:22:21

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: I DONT GET SCROLLING BACKGROUNDS AT ALL please help

I found this this project to be pretty good at explaining things

http://scratch.mit.edu/projects/04lukeb/77404


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#3 2008-01-11 21:01:31

lilhd
Scratcher
Registered: 2007-12-03
Posts: 26

Re: I DONT GET SCROLLING BACKGROUNDS AT ALL please help

thanks but how do you have like a guy move and when he is close to the edge the background moves with him

Last edited by lilhd (2008-01-11 21:07:04)

Offline

 

#4 2008-01-12 09:11:31

funkymonkey
Scratcher
Registered: 2007-06-03
Posts: 1000+

Re: I DONT GET SCROLLING BACKGROUNDS AT ALL please help

lilhd wrote:

thanks but how do you have like a guy move and when he is close to the edge the background moves with him

you mean like for the main character have this
<when green flag clicked>
<forever>
<if> <touching[ edge
<broadcast[ next backround
and for the backround have this
<when I receive[ next backround
<next costume>

Last edited by funkymonkey (2008-01-12 09:11:46)


http://i243.photobucket.com/albums/ff67/hprules_photos/banner2.jpg
Kuzimu: Dawn of a New Age                                                                                                  Coming May 2010

Offline

 

#5 2008-01-13 18:27:50

lilhd
Scratcher
Registered: 2007-12-03
Posts: 26

Re: I DONT GET SCROLLING BACKGROUNDS AT ALL please help

how do you make a multidirectional scrolling background, and im bad at looking at projects and knowing what they are doing the way funkymonkey did it is the best. Archmage, i looked at your multidirectional scrolling background project and i dont get it. Im trying to make something that you move the up, down, left, and right arrow keys to move a guy through a city. yours just does a mouse click motion.

Last edited by lilhd (2008-01-13 18:30:10)

Offline

 

#6 2008-01-13 19:37:58

funkymonkey
Scratcher
Registered: 2007-06-03
Posts: 1000+

Re: I DONT GET SCROLLING BACKGROUNDS AT ALL please help

lilhd wrote:

how do you make a multidirectional scrolling background

well, for left and right, make 2 sprites, lines (1 for the left and 1 for the right) and put them on the left and right. then give this script to the main guy that you move around:
<when green flag clicked>
<forever>
<if><touching[ left line
<broadcast[ left line
<end>
<if><touching[ right line
<broadcast[ right line
<end>
<end>

then give these scripts to the background:
<when I receive[ left line
<switch to costume[ (( costume# <-> 1 ))

<when I receive[ right line
<switch to costume[ (( costume# <+> 1 ))


http://i243.photobucket.com/albums/ff67/hprules_photos/banner2.jpg
Kuzimu: Dawn of a New Age                                                                                                  Coming May 2010

Offline

 

Board footer