| This article is a stub. It may be incomplete, unfinished, or have missing parts/sections. If the article can be expanded, please do so! There may be suggestions on its talk page. (December 2021) |
| This tutorial in a nutshell: A tutorial for explaining how to create scrolling backgrounds using lists. |
What is Scrolling?
Scrolling is the illusion of motion, focused on a player in a plane or field. It achieves this by moving the landscape around the player in the opposite direction it is 'going' to create the effect that the player alone is moving, not the landscape.
Lists vs. Clones
Clones are duplicates of a sprite. However, only 300 clones can be shown at a time, while lists can have as many as 200,000 items.[1] Below, some pros and cons of using either lists or clones for scrolling are listed.
Lists
Pros
- A lot of storage
- Can store data as well as add / remove it at will
- Better to control [clarify]
Cons
- When rendering lists as sprites, it takes a while to go through all 200,000 items
Clones
Pros
- More familiar to many Scratchers
Cons
- Harder to control [clarify]
- Limited number
Tutorial
- Create a new project and title it 'Scrolling Lists'
- Go into the cat sprite and delete the costumes, leaving the last one blank