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

#1 2012-07-24 10:54:59

fireball900
Scratcher
Registered: 2011-05-21
Posts: 1

complex scrolling

does anyone know how to make a scrolling game with one or two sprite/s as the scroller that changes when you move I have seen it done before but I have not been able to work it out myself.
thank you. smile

Offline

 

#2 2012-07-27 18:55:36

chrisbown
Scratcher
Registered: 2011-07-29
Posts: 100+

Re: complex scrolling

the scrolling background should be like this

when gf clicked forever set x to(((scroll x) + [480]) * [0]) 
the same should be with y but with + 360 instead. if you want different scrolling background positions, do set x to scroll to scrollx + 480 * 1 to do 1 background up etc.(remember you will need more sprites for multiple scrolling backgrounds). the sprite that does the scrolling should be when left arrow pressed, change scrollx by -1,right arrow pressed, change scrollx by 1,up arrow pressed, change scrolly by 1,down arrow pressed, change scrolly by -1, but you can change the number though, forgot to mention that you need to make scrollx and y variables.


check out this: Tank physicshttp://scratch.mit.edu/projects/hamstercake11/3082288

Offline

 

#3 2012-07-27 20:17:49

Prestige
Scratcher
Registered: 2008-12-15
Posts: 100+

Re: complex scrolling

chrisbown wrote:

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

Fixed  smile


"Don't insult someone until you've walked a mile in their shoes. That way, if they don't like what you have to say, you'll be a mile away and still have their shoes  smile  "

Offline

 

Board footer