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

#1 2008-10-19 14:49:49

Thorinoakinbum
Scratcher
Registered: 2008-10-18
Posts: 3

Side Scrolling Game!!!

Hello all!  I am not that new to scratch, however I just created an account so I could share my creations.  I was just wondering if someone could either tell me in detail or provide a sample script for having a never ending background.  I want to make a game where a simple sprite can move left, right, or jump forward.  I want the background to have an endless loop that only moves with the character.  So if the character moves left, the screen moves left, the same for if the sprite goes right.  I know this may be extremely complicated so I appreciate any help.  THANKS!




                                                                     ---Thorinoakinbum

Offline

 

#2 2008-10-19 22:53:14

solstice
Scratcher
Registered: 2008-09-04
Posts: 55

Re: Side Scrolling Game!!!

Hi Thorinoakinbum

The way that I found out to do this is:

I went into scratch version 1.3 and I put the scripts onto the player and then put these scratch blocks

(Left)

<when green flag clicked>
<forever if> <touching[ terrian0] <<  <and>  >><touching color[ Red]
<set{ scrollx }to(-1630)
<end>

(Right)

<when green flag clicked>
<forever if> <touching[ terrian3] <<  <and>  >><touching color[ Red]
<set{ scrollx }to(110)
<end>

Offline

 

Board footer