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

#1 2008-08-06 22:32:24

Mariojon
Scratcher
Registered: 2007-07-29
Posts: 13

A Scrolling block...

Since it's so hard to scroll in Scratch then why doesn't the Scratch team make a set of Scrolling blocks:  <change scroll x by(?) <change scroll y by(?)   It would be great!


Mariojon = MarioSonicCouncil  big_smile

Offline

 

#2 2008-08-06 22:42:46

noobz
Scratcher
Registered: 2008-06-24
Posts: 100+

Re: A Scrolling block...

good idea but they one problem.


My Featured Game Of The Week:
http://scratch.mit.edu/projects/archtest/498133 [Smash!]

Offline

 

#3 2008-08-06 23:14:26

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

Re: A Scrolling block...

1. it is not hard to scroll. It it about 3 lines of code. If you want to become a half decent programmer then you need to at least to be able to implement a simple 3 line script.

2. How would these blocks even work? You can't just put a bunch of random sprites everywhere and expect a magic scroll block to do all the work for you.


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

 

#4 2008-08-07 00:47:10

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Re: A Scrolling block...

archmage wrote:

1. it is not hard to scroll. It it about 3 lines of code. If you want to become a half decent programmer then you need to at least to be able to implement a simple 3 line script.

2. How would these blocks even work? You can't just put a bunch of random sprites everywhere and expect a magic scroll block to do all the work for you.

Hey archmage i would like for you to show me the script for scrolling in flash.

Offline

 

#5 2008-08-07 01:36:45

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

Re: A Scrolling block...

keroro645 wrote:

archmage wrote:

1. it is not hard to scroll. It it about 3 lines of code. If you want to become a half decent programmer then you need to at least to be able to implement a simple 3 line script.

2. How would these blocks even work? You can't just put a bunch of random sprites everywhere and expect a magic scroll block to do all the work for you.

Hey archmage i would like for you to show me the script for scrolling in flash.

Sure, its REALLY simple.

Change the _root._x and _root._y values to scroll.

and thats it.

Last edited by archmage (2008-08-07 01:43:55)


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

 

#6 2008-08-09 16:29:33

Mariojon
Scratcher
Registered: 2007-07-29
Posts: 13

Re: A Scrolling block...

Guys I am only about to enter Middle School... WHAT IS root,x or root,y???


Mariojon = MarioSonicCouncil  big_smile

Offline

 

#7 2008-08-09 16:42:10

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: A Scrolling block...

Mariojon wrote:

Guys I am only about to enter Middle School... WHAT IS root,x or root,y???

Flash X and Y positions, I'm guessing. They're talking about Flash. And I'm about to enter middle school, too. I understand what they're saying. Also, it's _root.x not root,x

Offline

 

#8 2008-08-09 21:33:50

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

Re: A Scrolling block...

Mariojon, unless you are intrested in flash don't worry about _root._x and _root._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

 

#9 2008-08-09 21:38:48

Cyclone103
Scratcher
Registered: 2008-03-20
Posts: 500+

Re: A Scrolling block...

hey Mariojon, I made a one sprite, one script scroller. If you want to make your own, just download mine and change the costumes. Archmage made the terrain and the basic code for scrolling, and btw archmage, you have exactly 1000 posts, and I figured out a way to eliminate having a second sprite, and more than one script.


All your base are belong to us

Offline

 

#10 2008-08-09 21:41:09

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

Re: A Scrolling block...

Cyclone103 wrote:

hey Mariojon, I made a one sprite, one script scroller. If you want to make your own, just download mine and change the costumes. Archmage made the terrain and the basic code for scrolling, and btw archmage, you have exactly 1000 posts, and I figured out a way to eliminate having a second sprite, and more than one script.

Yes I have seen that project before. You repeatedly stamp and move one terrain sprite.


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

 

Board footer