Pages: 1
Topic closed
I found this this project to be pretty good at explaining things
http://scratch.mit.edu/projects/04lukeb/77404
Offline
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)
Offline
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
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 ))
Offline
Topic closed
Pages: 1