I'm new to Scratch and was wondering if someone could provide me with how to make it so I can have a endless back ground that scrolls from right to left when a character moves.
Offline
how can you make it so the back ground continuously scrolls when a certain button is pressed that makes the character "looks" like hes moving.
If you know how could you leave a sample script?
Offline
kimmy123 wrote:
well if the character moves while scrolling, it will move to the edge and you will have to restart the game
no it wont forever if scrollx=480*2 set scrollx to 0
Last edited by skryed (2008-10-18 21:24:31)
Offline
skryed wrote:
kimmy123 wrote:
well if the character moves while scrolling, it will move to the edge and you will have to restart the game
no it wont forever if scrollx=480*2 set scrollx to 0
You are mostly correct with your code.
if scrollx>480*highestTerrainNumber set scrollX to 0
if scrollx<0 set scrollX to 480*highestTerrainNumber
Offline
Dude click the link in my signiture for scrolling tutorials, scrolling for beginners I wound recommend for you.
Offline
grumblinho wrote:
Just tried some of your projects, tro95. Great stuff!
Np. tell all ya m8s, arch, your going down!
Offline
tro95 wrote:
grumblinho wrote:
Just tried some of your projects, tro95. Great stuff!
Np. tell all ya m8s, arch, your going down!
Going down for what? I don't get you.
Offline