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
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
Offline
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
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)
Offline