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

#1 2012-03-12 02:50:22

snivy1999
Scratcher
Registered: 2012-03-06
Posts: 1

wow scroll y

when gf clicked
repeat until <(pokemon) > [10]>
  go to [sprite 2 v]
end
think [scroll y on snivy's adventure!] for (3) secs
so

people have done it but i can't. help me please
it would be great for level 6 of my snivy's adventure Gallery.

Offline

 

#2 2012-03-12 16:29:44

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: wow scroll y

Do you have a link to your project?  That might be helpful for people that want to see what you have so far.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#3 2012-03-12 21:38:47

MaxFlyboy
Scratcher
Registered: 2011-11-07
Posts: 100+

Re: wow scroll y

you mean normal scroll y?

when green flag clicked
forever
set y to [scroll y (variable) + {360*(the placement you want, starting with zero)}]
forever end

for the character just have it so that if the up key is pressed, than he changes scroll y with the respective amount

infinite scroll y?

This will be like a falldown game where the barriers are scrolling downwards

Make about 5 sprites

Make costumes of barriers each one different than the other for each costume

Make a script like so (I don't like scratchblocks)

When green flag clicked
go to x:0 y:180
hide
forever
   wait until [insert variable name here] = (this sprite number)
   switch to costume pick random 1 to (limit of costumes)
   show
   repeat until y = (pick a number between 160 and 140, depending on the usual lengths         
   between costumes)
         change y by -(speed you want)
   repeat end
   set [variable mentioned above] to (next sprite number)
   repeat until y =-170 or y < -170
         change y by -(speed mentioned above)
   repeat end
   hide
forever end


copied this from another forum post I made involving scroll y


http://cdn.voodoofilm.org/images/upload/thumb/viral-video-2011.jpg click the picture for an AMV

Offline

 

#4 2012-03-13 06:14:51

Splodgey
Scratcher
Registered: 2011-04-26
Posts: 500+

Re: wow scroll y

MaxFlyboy wrote:

you mean normal scroll y?

when green flag clicked
forever
set y to ((scroll y) + ([360] * (the placement you want, starting with zero)))
for the character just have it so that if the up key is pressed, than he changes scroll y with the respective amount

infinite scroll y?

This will be like a falldown game where the barriers are scrolling downwards

Make about 5 sprites

Make costumes of barriers each one different than the other for each costume

Make a script like so (I don't like scratchblocks)
When green flag clicked
goto x (0) y (180)
hide
forever
   wait until <[insert variable name here] = (this sprite number)>
   switch to costume (pick random [1] to (limit of costumes))
   show
   repeat until <(y postion) = [150]> //150 as a number between 160 and 140         
         change y by ([0]-(speed you want))
  end
   set [variable mentioned above v] to (next sprite number)
   repeat until <y < [-169]>
         change y by ([0] - (speed mentioned above))
   end
   hide

copied this from another forum post I made involving scroll y

I turned them into

Code:

[scratchblocks]

to improve clarity.

Last edited by Splodgey (2012-03-13 06:19:57)

Offline

 

#5 2012-03-14 21:27:06

Squawkers13
Scratcher
Registered: 2010-11-20
Posts: 500+

Re: wow scroll y

i did it with the number being 270...


http://pekkit.net/banners/pekkit.png

Offline

 

#6 2012-03-14 21:32:53

MaxFlyboy
Scratcher
Registered: 2011-11-07
Posts: 100+

Re: wow scroll y

Squawkers13 wrote:

i did it with the number being 270...

with 360 it can move smoother with each 1 moved, 270 it's a little more blockiesh


http://cdn.voodoofilm.org/images/upload/thumb/viral-video-2011.jpg click the picture for an AMV

Offline

 

Board footer