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

#1 2012-06-22 19:23:38

sanjayraj
Scratcher
Registered: 2012-03-25
Posts: 500+

Scrolling

Hi
I am making a platformer and I only need help with the scrolling part. Could somewone help me with the scrolling script?


http://i46.tinypic.com/23sw40j.png

Offline

 

#2 2012-06-22 19:41:50

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

Re: Scrolling

when gf clicked
forever
if < key [left arrow v] pressed ?>
change [scroll X v] by [4]
end
if < key [right arrow v] pressed ?>
change [scroll X v] by [-4]
end
for the ground
when gf clicked
forever
set X to ( (scroll X) + [0]) //first platform the number is 0 second one is 1 third is 2 etc

Last edited by ftf841 (2012-06-22 19:51: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

 

#3 2012-06-22 19:49:36

sanjayraj
Scratcher
Registered: 2012-03-25
Posts: 500+

Re: Scrolling

Thanks!


http://i46.tinypic.com/23sw40j.png

Offline

 

Board footer