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

#1 2010-01-03 19:44:27

Morphed
Scratcher
Registered: 2009-12-09
Posts: 89

1s1s scrollers: About

I am about to make a 1s1s scroller, because I have almost mastered the art of it. i have noticed they are fairly popular.  roll  (of course they are! XD)

It uses stamping etc. It is hard to explain....

First, the 1 sprite all at once (in a blink of an eye) Stamps out in all the scrolling locations.
Then the sprite turns into the players format, and the game begins.  big_smile





                                                                                                              <direction>

Last edited by Morphed (2010-01-03 19:44:45)


http://scratch.mit.edu/static/icons/buddy/435431_med.png?t=2010-01-24+19%3A31%3A51 "A bird In the hand is better than above you."
Wowie. Econimy go boom daddy....

Offline

 

#2 2010-01-08 23:08:43

gbrox
Scratcher
Registered: 2009-12-27
Posts: 92

Re: 1s1s scrollers: About

Hmm. That Sounds Cool!
So, How Do U Make 1 Of Those?


___________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________-ha more than 2 lines

Offline

 

#3 2010-01-09 05:49:50

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: 1s1s scrollers: About

gbrox wrote:

Hmm. That Sounds Cool!
So, How Do U Make 1 Of Those?

I'll explain with one of my games: SLIME maze
(I'm going to strip the script to just the basics, no coin collection, collision detection etc)
<when green flag clicked>
<forever>
<clear>
<switch to costume[ land1
<go to x sad  <{ scrollX }> )y sad  <{ scrollY }>
<stamp>
<switch to costume[
<if><key[ left arrow ]pressed?>
<change{ scrollX }by( 10
<if><key[ right arrow ]pressed?>
<change{ scrollX }by( -10

The first thing that happens is clearing everything.
Then, the background costume is stamped (you may also need more than one, so you might have extras that say scrollX+480 etc)...
Then the game checks if arrow keys are pressed and changes the scroll variable.

If you want to use collision detection, it needs to be color-based. Instead of putting weird colors on your sprite, you could have a bunch of hit-tests stuck together that work before your character is stamped. And you might need velocity too ^_^

Last edited by juststickman (2010-01-09 05:50:17)


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#4 2010-01-09 06:32:53

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: 1s1s scrollers: About

RHY3756547's LINE is a great example of a 1 sprite 1 script scroller.


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#5 2010-01-09 16:24:03

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: 1s1s scrollers: About

Jonathanpb wrote:

RHY3756547's LINE is a great example of a 1 sprite 1 script scroller.

The only problem is, when you try to look at the script your computer freezes (stupid comments -.-)


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#6 2010-01-16 17:50:15

a1130
Scratcher
Registered: 2009-08-27
Posts: 500+

Re: 1s1s scrollers: About

juststickman wrote:

Jonathanpb wrote:

RHY3756547's LINE is a great example of a 1 sprite 1 script scroller.

The only problem is, when you try to look at the script your computer freezes (stupid comments -.-)

Yeah... most of his projects are very good in offline presentation mode... but not this one. But it's very good.

Offline

 

Board footer