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

#1 2008-05-27 01:06:21

CFCRubiks
Scratcher
Registered: 2008-05-11
Posts: 100+

Infinite Scrolling using Odd and Even

Has this ever been done before? I'm trying to figure out how, but I wanna make sure it would be a "scratch breakthrough" kinda thing. Thanks!

Offline

 

#2 2008-05-27 04:12:55

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Infinite Scrolling using Odd and Even

Can you explain your idea in more detail?  I think what you are getting at is that you would compute the position of the sprite as a multiple of the number of window widths and, based on whether that number is odd or even, show a different background sprite (or background sprite costume).  Is that what you had in mind?


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#3 2008-05-27 17:15:54

CFCRubiks
Scratcher
Registered: 2008-05-11
Posts: 100+

Re: Infinite Scrolling using Odd and Even

Well, I wanna make a 2 sprite scroller, but it is infinite. This part:
[blocks]<when green flag clicked>[/blocks]
[blocks]<forever>[/blocks]
[blocks]<set x to( (( <{ scrollx }> <+>(( 480 <*><{ determine if odd or even }>  ))  ))[/blocks]

Does that help?

Offline

 

#4 2008-05-27 17:26:20

CFCRubiks
Scratcher
Registered: 2008-05-11
Posts: 100+

Re: Infinite Scrolling using Odd and Even

Wait, I thin kI have the Right side. Ill post the link here http://scratch.mit.edu/projects/CFCRubiks/174476

Last edited by CFCRubiks (2008-05-27 17:30:06)

Offline

 

#5 2008-05-27 18:00:52

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

Re: Infinite Scrolling using Odd and Even

CFCRubiks wrote:

Has this ever been done before? I'm trying to figure out how, but I wanna make sure it would be a "scratch breakthrough" kinda thing. Thanks!

I made up a scrolling code that uses 2 sprites and scrolls infinetly.

http://scratch.mit.edu/forums/viewtopic.php?id=2440

Check method 2.


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-05-27 18:02:09

CFCRubiks
Scratcher
Registered: 2008-05-11
Posts: 100+

Re: Infinite Scrolling using Odd and Even

archmage wrote:

CFCRubiks wrote:

Has this ever been done before? I'm trying to figure out how, but I wanna make sure it would be a "scratch breakthrough" kinda thing. Thanks!

I made up a scrolling code that uses 2 sprites and scrolls infinetly.

http://scratch.mit.edu/forums/viewtopic.php?id=2440

Check method 2.

I've tried it. Doesn't work.... Plus, this one is easier. Only 2 variables and not complicated mathematics

Offline

 

#7 2008-05-27 18:19:06

CFCRubiks
Scratcher
Registered: 2008-05-11
Posts: 100+

Re: Infinite Scrolling using Odd and Even

And it doesn't use costumes

Offline

 

#8 2008-05-27 20:10:52

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

Re: Infinite Scrolling using Odd and Even

CFCRubiks wrote:

archmage wrote:

CFCRubiks wrote:

Has this ever been done before? I'm trying to figure out how, but I wanna make sure it would be a "scratch breakthrough" kinda thing. Thanks!

I made up a scrolling code that uses 2 sprites and scrolls infinetly.

http://scratch.mit.edu/forums/viewtopic.php?id=2440

Check method 2.

I've tried it. Doesn't work.... Plus, this one is easier. Only 2 variables and not complicated mathematics

Ok, firstly, it does work. I even gave a demonstration project.
http://scratch.mit.edu/projects/archmage/82995

It doesn't use complex mathematics. You just have to be a relatively experinced programmer to make it work. It works fine and I used it in a scrolling game called "Archknight's Adventure".
http://scratch.mit.edu/projects/archknight/80465

And if your method doesn't use costumes, how can you make large areas using just 2 sprites and 2 costumes?


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-05-27 20:56:44

CFCRubiks
Scratcher
Registered: 2008-05-11
Posts: 100+

Re: Infinite Scrolling using Odd and Even

archmage wrote:

CFCRubiks wrote:

archmage wrote:


I made up a scrolling code that uses 2 sprites and scrolls infinetly.

http://scratch.mit.edu/forums/viewtopic.php?id=2440

Check method 2.

I've tried it. Doesn't work.... Plus, this one is easier. Only 2 variables and not complicated mathematics

Ok, firstly, it does work. I even gave a demonstration project.
http://scratch.mit.edu/projects/archmage/82995

It doesn't use complex mathematics. You just have to be a relatively experinced programmer to make it work. It works fine and I used it in a scrolling game called "Archknight's Adventure".
http://scratch.mit.edu/projects/archknight/80465

And if your method doesn't use costumes, how can you make large areas using just 2 sprites and 2 costumes?

Last time I tried, it didn't work, but you might have updated it. And I figured out that, this method witches costumes EASILY by the odd or even variable. I figured that AFTER  I posted...

Offline

 

#10 2008-05-27 21:16:56

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Infinite Scrolling using Odd and Even

The best way to show off your new method is to make a good demonstration project with smooth transitions that displays a fairly large piece of real estate, maybe 3 or 4 windows width.  Seeing is believing, right?


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#11 2008-05-27 23:15:31

CFCRubiks
Scratcher
Registered: 2008-05-11
Posts: 100+

Re: Infinite Scrolling using Odd and Even

Paddle2See wrote:

The best way to show off your new method is to make a good demonstration project with smooth transitions that displays a fairly large piece of real estate, maybe 3 or 4 windows width.  Seeing is believing, right?

I'm working on a Starfox kinda game

Offline

 

#12 2008-05-28 17:32:31

CFCRubiks
Scratcher
Registered: 2008-05-11
Posts: 100+

Re: Infinite Scrolling using Odd and Even

http://scratch.mit.edu/projects/CFCRubiks/175171 - Here it is. Unlimited scrolling (with some velocity help).

Offline

 

#13 2008-05-28 20:02:38

CFCRubiks
Scratcher
Registered: 2008-05-11
Posts: 100+

Re: Infinite Scrolling using Odd and Even

http://scratch.mit.edu/projects/CFCRubiks/175282 Now has 2 directions

Offline

 

#14 2008-05-28 20:15:00

funkymonkey
Scratcher
Registered: 2007-06-03
Posts: 1000+

Re: Infinite Scrolling using Odd and Even

CFCRubiks wrote:

Has this ever been done before? I'm trying to figure out how, but I wanna make sure it would be a "scratch breakthrough" kinda thing. Thanks!

i think it is, but make sure you credit bluestribute and that cyclone person for the smooth scrolling and the even/odd project.


http://i243.photobucket.com/albums/ff67/hprules_photos/banner2.jpg
Kuzimu: Dawn of a New Age                                                                                                  Coming May 2010

Offline

 

#15 2008-05-28 20:16:38

CFCRubiks
Scratcher
Registered: 2008-05-11
Posts: 100+

Re: Infinite Scrolling using Odd and Even

funkymonkey wrote:

CFCRubiks wrote:

Has this ever been done before? I'm trying to figure out how, but I wanna make sure it would be a "scratch breakthrough" kinda thing. Thanks!

i think it is, but make sure you credit bluestribute and that cyclone person for the smooth scrolling and the even/odd project.

I will. And I just figured out that the one I copied from bluestribute actually doesn't use my example (though mine does the same thing, but more options and easier). I feel stupid now...

Offline

 

#16 2008-05-28 20:28:16

funkymonkey
Scratcher
Registered: 2007-06-03
Posts: 1000+

Re: Infinite Scrolling using Odd and Even

wat do you mean it doesn't use ur example? u mean the even odd thing?


http://i243.photobucket.com/albums/ff67/hprules_photos/banner2.jpg
Kuzimu: Dawn of a New Age                                                                                                  Coming May 2010

Offline

 

#17 2008-05-28 20:30:11

CFCRubiks
Scratcher
Registered: 2008-05-11
Posts: 100+

Re: Infinite Scrolling using Odd and Even

funkymonkey wrote:

wat do you mean it doesn't use ur example? u mean the even odd thing?

Right on. But like I said, they produce the same effect, but my way is easier and more efficient.

Offline

 

Board footer