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

#1 2011-02-15 11:27:40

Purika
Scratcher
Registered: 2011-01-26
Posts: 100+

Need help with scrolly

Hey everybody!

If the scrollx code is:
<when[ space ]key pressed>
<set y to( 0
<forever>
<set x to( (( <{ scrollx }> <+> (( 480 <*> 0 )) ))

What is the scrolly code? I don't need this whole bunch of things, i just need the number I have to use instead of 480 and any other stuff I have to do that is different rom scrollx. Can anyone please help?

Thanks, Purika


https://lh3.googleusercontent.com/-ZlPXbnYAtro/TxRNNopA6XI/AAAAAAAAAvY/worvlbyfCYI/s589/Purika.gif
If I was three birds, I could see myself fly below us!  big_smile

Offline

 

#2 2011-02-15 11:30:37

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

Re: Need help with scrolly

Purika wrote:

Hey everybody!

If the scrollx code is:
<when[ up ]key pressed>
<forever>
<set y to( (( <{ scrolly }> <+> (( 360 <*> 0 )) ))

What is the scrolly code? I don't need this whole bunch of things, i just need the number I have to use instead of 480 and any other stuff I have to do that is different rom scrollx. Can anyone please help?

Thanks, Purika

I fixed it for you. 480 is the width of the stage and 360 is the height.

Last edited by archmage (2011-02-15 11:31:28)


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

 

#3 2011-02-16 12:17:26

Purika
Scratcher
Registered: 2011-01-26
Posts: 100+

Re: Need help with scrolly

archmage wrote:

Purika wrote:

Hey everybody!

If the scrollx code is:
<when[ up ]key pressed>
<forever>
<set y to( (( <{ scrolly }> <+> (( 360 <*> 0 )) ))

What is the scrolly code? I don't need this whole bunch of things, i just need the number I have to use instead of 480 and any other stuff I have to do that is different rom scrollx. Can anyone please help?

Thanks, Purika

I fixed it for you. 480 is the width of the stage and 360 is the height.

Thanks very much!  big_smile


https://lh3.googleusercontent.com/-ZlPXbnYAtro/TxRNNopA6XI/AAAAAAAAAvY/worvlbyfCYI/s589/Purika.gif
If I was three birds, I could see myself fly below us!  big_smile

Offline

 

Board footer