Advanced Topics: User-Controlled Scrolling Background | Tutorial

Channel:
Subscribers:
263,000
Published on ● Video Link: https://www.youtube.com/watch?v=ni01azp6mX8



Duration: 0:00
9,855 views
209


Let’s explore one method to create a scrolling background, but make one that your user can control and explore, by using keyboard keys to make the background move in different directions. Then, we can add some additional moving sprites to really bring the scene to life! Scrolling backgrounds like this could be used in games or animations or informational projects.

Check out our printable coding cards for this video here: https://resources.scratch.mit.edu/www/cards/en/advancedtopicsgraphics-cards.pdf
Find a scrolling background example project here: https://scratch.mit.edu/projects/969838240
A WIP version for a scrolling background platformer here: https://scratch.mit.edu/projects/970438551
A top-down scrolling background here:
https://scratch.mit.edu/projects/970482174

And if you need more information about some of the advanced blocks we used, see our cards on:
Conditional Statements: https://resources.scratch.mit.edu/www/cards/en/conditionalstatement-cards.pdf
Variables and Lists: https://resources.scratch.mit.edu/www/cards/en/variablelist-cards.pdf
My Blocks: https://resources.scratch.mit.edu/www/cards/en/myblocks-cards.pdf

Looking to learn more? The Scratch Foundation has partnered with The Achievery to provide free beginner and intermediate creative coding lesson plans on a variety of topics for educators, caregivers, and learners. Sign up (for free!) for the Achievery by using our custom partner code “SCRATCH” when you register to support our work, and see our units like "The Bounce Algorithm" for more! https://www.theachievery.com/account/signup