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

#1 2012-01-06 12:23:28

schusteralex2
Scratcher
Registered: 2011-09-17
Posts: 1000+

help with scrolling

I am trying to make a doodle jump game and does anyone know how to make it so it only scrolls when I jump.
Here is a link to the test project http://scratch.mit.edu/projects/schusteralex2/2259101


http://i44.tinypic.com/2uj37ds.gif

Offline

 

#2 2012-01-07 14:11:49

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

Re: help with scrolling

I'm not sure if this works but you could do this

When Green Flag clicked
forever start
if touching green (the jumping pads)
if y > 0
change scroll y by (how much you want it to go up)
else
change y by (how much you want it to go up)
forever end


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

Offline

 

#3 2012-01-07 14:22:57

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: help with scrolling

MaxFlyboy wrote:

I'm not sure if this works but you could do this

When Green Flag clicked
forever start
if touching green (the jumping pads)
if y > 0
change scroll y by (how much you want it to go up)
else
change y by (how much you want it to go up)
forever end

That is almost perfect, but I suggest instead of having it say "if touching green", have it say "if vertical > 0", meaning whenever you are moving up.

Last edited by Kileymeister (2012-01-07 14:23:16)


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#4 2012-01-08 15:07:35

schusteralex2
Scratcher
Registered: 2011-09-17
Posts: 1000+

Re: help with scrolling

Thank you both, and i just noticed I'm now a Scratcher!! Yay!!


http://i44.tinypic.com/2uj37ds.gif

Offline

 

#5 2012-01-08 17:59:25

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: help with scrolling

If you look at example projects, games, then Scrolling demo, you can use that, but instead of using x do y!


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

Board footer