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

#1 2011-10-02 14:37:10

jamie1234
Scratcher
Registered: 2011-07-13
Posts: 4

scrollx and scrolly

how do you do it and it works. i made one but it didnt work. please help me.

Offline

 

#2 2011-10-03 15:25:56

Babado
Scratcher
Registered: 2011-09-15
Posts: 84

Re: scrollx and scrolly

Remember to make the SCROLLX backgrounds sprites.


I believe theres a help guide for this in scratch already? Somewhere in the projects that you get as soon as you download

Offline

 

#3 2011-10-04 17:55:07

TinkerZone
New Scratcher
Registered: 2011-08-25
Posts: 10

Re: scrollx and scrolly

Visit this page for help on making a scroller: http://wiki.scratch.mit.edu/wiki/Scroller

It is a good place to start. 

Good luck

Offline

 

#4 2011-10-06 13:45:51

NeilWest
Scratcher
Registered: 2010-01-06
Posts: 1000+

Re: scrollx and scrolly

Scrolling Explained:

Scrolling needs a sprite called Terrain0. Now add a script like this;

<when green flag clicked>
<forever>
<go to x sad (( <{ ScrollX }> <+> (( 460 <*> 0 )) ))  )y sad (( <{ ScrollY }> <+> (( 460 <*> 0 )) ))  )
<end>

Then do the same, but this time, on scrollX, change the 0 to a 1. Repeat this and now you know how to make a horixontal scroller. To make a vertical Donkey-Kong style scroller, instead of changing the ScrollX, change the ScrollY. For the sprite be sure to remeber that to go one way, do the oppisite number for both ScrollY and ScrollX. Hope that has showed you what Scrolling is.

Last edited by NeilWest (2011-10-06 13:46:06)

Offline

 

#5 2011-11-03 13:42:54

jamie1234
Scratcher
Registered: 2011-07-13
Posts: 4

Re: scrollx and scrolly

thanks all

Offline

 

#6 2011-11-04 04:16:48

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: scrollx and scrolly

NeilWest wrote:

Scrolling Explained:

Scrolling needs a sprite called Terrain0. Now add a script like this;

<when green flag clicked>
<forever>
<go to x sad (( <{ ScrollX }> <+> (( 460 <*> 0 )) ))  )y sad (( <{ ScrollY }> <+> (( 460 <*> 0 )) ))  )
<end>

Then do the same, but this time, on scrollX, change the 0 to a 1. Repeat this and now you know how to make a horixontal scroller. To make a vertical Donkey-Kong style scroller, instead of changing the ScrollX, change the ScrollY. For the sprite be sure to remeber that to go one way, do the oppisite number for both ScrollY and ScrollX. Hope that has showed you what Scrolling is.

Shouldn't the y bit be scrolly+([b]360[b/]x0) not 460, and the x bit 480?


Why

Offline

 

Board footer