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

#1 2012-05-06 08:27:48

ftf841
Scratcher
Registered: 2012-02-19
Posts: 1000+

scrollers

one of the most common things put on help with scrips are help with scroller.so i wanted to create a thread with tips to create a scroller.

some people think that you need lots of platforms to create a scroller. this is not always true. I mostly only use a couple platforms. so here is how to do that. first make a platform the size of the screen. then shrink it and then add more repeat this process untill you have what you need then for the ground then make a varible called scrollX then put this script in for the ground

when gf clicked
set size to [160] %
forever
set X to (scrollX)
then for the character put this script
forever
if <key [left arrow v] pressed ?>
change [scrollX v]by [4]
end
if <key [right arrow v] pressed ?>
change [scrollX v] by [-4]
end

Last edited by ftf841 (2012-05-06 08:28:31)


http://mag.racked.eu/cimage/i9002/Achievement++get%21/Hi+there./mca.png
http://mag.racked.eu/mcimage/i354/Achievement++get%21/CAKE%21%21%21%21%21/mca.png

Offline

 

#2 2012-05-06 13:14:45

humhumgames
Scratcher
Registered: 2012-03-26
Posts: 1000+

Re: scrollers

'first make a platform the size of the screen. then shrink it and then add more repeat this process untill you have what you need then for the ground' what do you mean by that bit?

Offline

 

#3 2012-05-06 13:18:03

ftf841
Scratcher
Registered: 2012-02-19
Posts: 1000+

Re: scrollers

humhumgames wrote:

'first make a platform the size of the screen. then shrink it and then add more repeat this process untill you have what you need then for the ground' what do you mean by that bit?

first make the platform normaly then use the shrink feature and then add more platforms so then the set size to 160 pecent script makes it larger than the screen.
Example:http://scratch.mit.edu/projects/ftf841/2508549 it only uses one platform for the ground

Last edited by ftf841 (2012-05-06 13:24:04)


http://mag.racked.eu/cimage/i9002/Achievement++get%21/Hi+there./mca.png
http://mag.racked.eu/mcimage/i354/Achievement++get%21/CAKE%21%21%21%21%21/mca.png

Offline

 

#4 2012-05-06 13:28:10

humhumgames
Scratcher
Registered: 2012-03-26
Posts: 1000+

Re: scrollers

ftf841 wrote:

humhumgames wrote:

'first make a platform the size of the screen. then shrink it and then add more repeat this process untill you have what you need then for the ground' what do you mean by that bit?

first make the platform normaly then use the shrink feature and then add more platforms so then the set size to 160 pecent script makes it larger than the screen.
Example:http://scratch.mit.edu/projects/ftf841/2508549 it only uses one platform for the ground

Cool, thanks!

Offline

 

#5 2012-05-06 13:36:56

Haiming
Scratcher
Registered: 2011-08-20
Posts: 1000+

Re: scrollers

Cool! I have never made a scroller before. I might try one. Are they hard?

Offline

 

#6 2012-05-06 14:08:59

humhumgames
Scratcher
Registered: 2012-03-26
Posts: 1000+

Re: scrollers

Haiming wrote:

Cool! I have never made a scroller before. I might try one. Are they hard?

Actually, they aren't hard at all. I found this tutorial that is SUPER SIMPLE on youtube, but after that you could fiddle around and do way more advanced things.


http://www.scratch.mit.edu/ext/youtube/?v=KHcTRzaB2Hg

Offline

 

#7 2012-05-06 14:09:29

ftf841
Scratcher
Registered: 2012-02-19
Posts: 1000+

Re: scrollers

Haiming wrote:

Cool! I have never made a scroller before. I might try one. Are they hard?

it's actualy kind of easy it's just a platformer that scrolls


http://mag.racked.eu/cimage/i9002/Achievement++get%21/Hi+there./mca.png
http://mag.racked.eu/mcimage/i354/Achievement++get%21/CAKE%21%21%21%21%21/mca.png

Offline

 

#8 2012-05-06 18:42:32

ftf841
Scratcher
Registered: 2012-02-19
Posts: 1000+

Re: scrollers

bump


http://mag.racked.eu/cimage/i9002/Achievement++get%21/Hi+there./mca.png
http://mag.racked.eu/mcimage/i354/Achievement++get%21/CAKE%21%21%21%21%21/mca.png

Offline

 

#9 2012-05-07 20:11:14

ftf841
Scratcher
Registered: 2012-02-19
Posts: 1000+

Re: scrollers

bump


http://mag.racked.eu/cimage/i9002/Achievement++get%21/Hi+there./mca.png
http://mag.racked.eu/mcimage/i354/Achievement++get%21/CAKE%21%21%21%21%21/mca.png

Offline

 

#10 2012-05-09 17:12:28

ftf841
Scratcher
Registered: 2012-02-19
Posts: 1000+

Re: scrollers

bump


http://mag.racked.eu/cimage/i9002/Achievement++get%21/Hi+there./mca.png
http://mag.racked.eu/mcimage/i354/Achievement++get%21/CAKE%21%21%21%21%21/mca.png

Offline

 

#11 2012-05-10 19:53:25

ftf841
Scratcher
Registered: 2012-02-19
Posts: 1000+

Re: scrollers

bump-ASOURUS!


http://mag.racked.eu/cimage/i9002/Achievement++get%21/Hi+there./mca.png
http://mag.racked.eu/mcimage/i354/Achievement++get%21/CAKE%21%21%21%21%21/mca.png

Offline

 

#12 2012-05-11 18:39:21

ftf841
Scratcher
Registered: 2012-02-19
Posts: 1000+

Re: scrollers

bumpity


http://mag.racked.eu/cimage/i9002/Achievement++get%21/Hi+there./mca.png
http://mag.racked.eu/mcimage/i354/Achievement++get%21/CAKE%21%21%21%21%21/mca.png

Offline

 

#13 2012-05-12 09:03:32

ftf841
Scratcher
Registered: 2012-02-19
Posts: 1000+

Re: scrollers

bump


http://mag.racked.eu/cimage/i9002/Achievement++get%21/Hi+there./mca.png
http://mag.racked.eu/mcimage/i354/Achievement++get%21/CAKE%21%21%21%21%21/mca.png

Offline

 

#14 2012-05-14 20:17:50

ftf841
Scratcher
Registered: 2012-02-19
Posts: 1000+

Re: scrollers

bump


http://mag.racked.eu/cimage/i9002/Achievement++get%21/Hi+there./mca.png
http://mag.racked.eu/mcimage/i354/Achievement++get%21/CAKE%21%21%21%21%21/mca.png

Offline

 

#15 2012-05-17 07:40:48

ftf841
Scratcher
Registered: 2012-02-19
Posts: 1000+

Re: scrollers

Kick


http://mag.racked.eu/cimage/i9002/Achievement++get%21/Hi+there./mca.png
http://mag.racked.eu/mcimage/i354/Achievement++get%21/CAKE%21%21%21%21%21/mca.png

Offline

 

#16 2012-05-23 16:40:12

ftf841
Scratcher
Registered: 2012-02-19
Posts: 1000+

Re: scrollers

bumpity


http://mag.racked.eu/cimage/i9002/Achievement++get%21/Hi+there./mca.png
http://mag.racked.eu/mcimage/i354/Achievement++get%21/CAKE%21%21%21%21%21/mca.png

Offline

 

#17 2012-05-24 04:57:20

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: scrollers

ftf841 wrote:

one of the most common things put on help with scrips are help with scroller.so i wanted to create a thread with tips to create a scroller.

some people think that you need lots of platforms to create a scroller. this is not always true. I mostly only use a couple platforms. so here is how to do that. first make a platform the size of the screen. then shrink it and then add more repeat this process untill you have what you need then for the ground then make a varible called scrollX then put this script in for the ground

when gf clicked
set size to [160] %
forever
set X to (scrollX)
then for the character put this script
forever
if <key [left arrow v] pressed ?>
change [scrollX v]by [4]
end
if <key [right arrow v] pressed ?>
change [scrollX v] by [-4]
end

Can't you use the

when gf clicked
forever
set x to ((scroll x) + ((480) * ()))

when gf clicked
forever
if <key [left arrow v] pressed ?>
change [scroll x v] by ()
end
if <key [right arrow v] pressed ?>
change [scroll x v] by ()
end
method?


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

#18 2012-05-24 16:13:57

ftf841
Scratcher
Registered: 2012-02-19
Posts: 1000+

Re: scrollers

jontmy00 wrote:

ftf841 wrote:

one of the most common things put on help with scrips are help with scroller.so i wanted to create a thread with tips to create a scroller.

some people think that you need lots of platforms to create a scroller. this is not always true. I mostly only use a couple platforms. so here is how to do that. first make a platform the size of the screen. then shrink it and then add more repeat this process untill you have what you need then for the ground then make a varible called scrollX then put this script in for the ground

when gf clicked
set size to [160] %
forever
set X to (scrollX)
then for the character put this script
forever
if <key [left arrow v] pressed ?>
change [scrollX v]by [4]
end
if <key [right arrow v] pressed ?>
change [scrollX v] by [-4]
end

Can't you use the

when gf clicked
forever
set x to ((scroll x) + ((480) * ()))

when gf clicked
forever
if <key [left arrow v] pressed ?>
change [scroll x v] by ()
end
if <key [right arrow v] pressed ?>
change [scroll x v] by ()
end
method?

yah but it's a lot more work


http://mag.racked.eu/cimage/i9002/Achievement++get%21/Hi+there./mca.png
http://mag.racked.eu/mcimage/i354/Achievement++get%21/CAKE%21%21%21%21%21/mca.png

Offline

 

#19 2012-05-24 19:15:08

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: scrollers

Is there a way to make a non-looping scroller?


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#20 2012-05-25 06:39:11

ftf841
Scratcher
Registered: 2012-02-19
Posts: 1000+

Re: scrollers

Firedrake969 wrote:

Is there a way to make a non-looping scroller?

yes this is the way to make a non-looping scroller


http://mag.racked.eu/cimage/i9002/Achievement++get%21/Hi+there./mca.png
http://mag.racked.eu/mcimage/i354/Achievement++get%21/CAKE%21%21%21%21%21/mca.png

Offline

 

#21 2012-05-25 18:09:25

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: scrollers

But it eventually would loop...


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

Board footer