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

#176 2009-12-11 17:47:09

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: Scrolling Background - Help.

archmage wrote:

It doesn't really matter what the variables are called. But you could apply your methods no matter what the variables are called. I named the variables scrollX and scrollY because it gives people an idea of the purpose of the variables.

Yeah - but Cameras and trueX,Y (Helps Offscreen movement) are the way it's normally done in other languages. Like in The Sims Carnival Game Creator there were cameras, except you didn't have much control over them except to make them follow something.

Offline

 

#177 2009-12-11 18:15:47

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Scrolling Background - Help.

Yes, you are correct. I don't have too much experience with coding this sort of thing in other languages but in flash you would change _x or _y to scroll. But for the purpose of making a scrolling background in scratch I think that naming the variables scollX/Y is just fine.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#178 2009-12-12 09:01:27

ikuehne
Scratcher
Registered: 2009-04-15
Posts: 15

Re: Scrolling Background - Help.

I don't understand what trueX and trueY do. Do they have to do with sprites other than the background?

Offline

 

#179 2009-12-13 09:37:07

shrieker
Scratcher
Registered: 2009-05-09
Posts: 6

Re: Scrolling Background - Help.

Yet, this really doesn't say how to scroll. Can someone tell me where I can get a DECENT tutorial for scrolling?

Offline

 

#180 2010-02-05 20:29:17

boysrule
Scratcher
Registered: 2009-11-16
Posts: 16

Re: Scrolling Background - Help.

I have no idea how to make a background scroll and not even archmage would know how.

Offline

 

#181 2010-02-05 21:00:06

franked
Scratcher
Registered: 2010-01-29
Posts: 1

Re: Scrolling Background - Help.

How do you change your picture?

Offline

 

#182 2010-02-08 21:22:45

48bob
Scratcher
Registered: 2009-11-06
Posts: 18

Re: Scrolling Background - Help.

Can you show how to do the second method in multi directional version?

Offline

 

#183 2010-02-10 00:02:54

bayby2u
Scratcher
Registered: 2010-02-10
Posts: 1

Re: Scrolling Background - Help.

archmage wrote:

funkymonkey wrote:

wow. that is cool. do you know how to make the backround scroll?

Well the background has to be make of sprites. Just use the tutorial I typed out above.

Pleas make it shorter?

Offline

 

#184 2010-03-03 11:28:10

Clone15
Scratcher
Registered: 2010-02-07
Posts: 24

Re: Scrolling Background - Help.

How do you make an up scrolling background? Let's say you were making a jetpack game and wanted to continuously go up?

Offline

 

#185 2010-03-03 11:36:23

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Scrolling Background - Help.

To scroll vertically, you have to follow the tutorial but replace 480 with 360 and replace x with y.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#186 2010-03-14 21:18:51

blooddaddy7
Scratcher
Registered: 2010-02-11
Posts: 3

Re: Scrolling Background - Help.

is it supposed to scroll and then end then start again? I did exactly what you said on method2 and 1.

Offline

 

#187 2010-03-14 21:23:00

blooddaddy7
Scratcher
Registered: 2010-02-11
Posts: 3

Re: Scrolling Background - Help.

archmage wrote:

To scroll vertically, you have to follow the tutorial but replace 480 with 360 and replace x with y.

Like what do you replace with y?

Offline

 

#188 2010-03-15 07:31:43

fludd12
Scratcher
Registered: 2010-02-07
Posts: 9

Re: Scrolling Background - Help.

funkymonkey wrote:

wow. that is cool. do you know how to make the backround scroll?

also you could just make many, many, many costumes for the background and make it so that it changes backgrounds as long as you hold down the button (note this is not the best way cuz the background would have to be just 1 pixel collumn different than the last, making it hours of work.


My stuff | Ask me for an animated Icon! I will put it up on Mediafire!

Offline

 

Board footer