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)
Offline
'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
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)
Offline
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
Cool! I have never made a scroller before. I might try one. Are they hard?
Offline
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
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 groundwhen gf clicked set size to [160] % forever set X to (scrollX)then for the character put this scriptforever 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 () endmethod?
Offline
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 groundwhen gf clicked set size to [160] % forever set X to (scrollX)then for the character put this scriptforever if <key [left arrow v] pressed ?> change [scrollX v]by [4] end if <key [right arrow v] pressed ?> change [scrollX v] by [-4] endCan'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 () endmethod?
yah but it's a lot more work
Offline