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

#1 2009-12-08 18:55:58

NameHereProductions
Scratcher
Registered: 2009-11-13
Posts: 11

infinite scrolling help

i made an engine for infinite scrolling for a game and for the most part it works but after awhile it will get glitched up. Can anyone, preferably more advance scratchers help me.

-thank you

Heres the link

Infinite Scrolling

Last edited by NameHereProductions (2009-12-08 18:56:15)

Offline

 

#2 2009-12-11 00:01:31

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: infinite scrolling help

The glitch seems to be that eventually the sprites get sent to bad coordinates. I suspect it is because you are using what I call parallel scripting. By that, I mean you have separate, simultaneous blocks running in each sprite. This, especially when combined with Wait blocks, creates the potential for weirdness where variables get figured and assigned out of normal order.

Check out my version of this, "scroll test", done with 4 sprites for the scrolling background. It also has a 'border' sprite but it is used to conceal sprite changes, not for collision detection...
http://scratch.mit.edu/projects/Locomule/707613

And here is the same thing except with random background sprites used to make a random dungeon...
http://scratch.mit.edu/projects/Locomule/708768


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

#3 2009-12-11 20:29:49

NameHereProductions
Scratcher
Registered: 2009-11-13
Posts: 11

Re: infinite scrolling help

Thanks for the help but i made a different one that works better than my first one, but i don't think it's as good as yours.


heres the link if u want to check it out

http://scratch.mit.edu/users/NameHereProductions

Offline

 

#4 2009-12-12 23:24:01

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: infinite scrolling help

Aww, thanks for the complement but every project requires variations of the same processes. I sure wouldn't claim my is better! I'd say you have an excellent grasp of the scrolling process. I'm looking forward to learning 3d space programing next (as in x,y, and z)


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

Board footer