Basic Side Scrolling in Scratch
So this simple scrolling technique I proposed in this project has some flaws - So i'm now beginning again with a new slightly more complex method, but this is the way I do it in the majority of my projects - So please go here: https://youtu.be/sebnyhBsXug
This tutorial project will show a very basic project that implements side scrolling in Scratch. More screencasts to follow to explain things in more details, and add new elements to the project!
I spent a LONG time trying to figure out the simplet framework for scrolling that would allow scratchers to continue using the pattern of scripting they are used to, but also be flexible so that it could be built upon and extended.
You'll notice I do not use a single main game loop (which I always do in my own larger projects), but instead start off many independent forever loops in each sprite. This allows scratchers to add their own forever loops to control sprite movement, etc without introducing instant lag (that is associated with forever loops in my broadcast and wait tick based game loop).
This project is also set up to allow for a variety of scrolling mechanics (2 are shown in this video). I'll show how to adapt this for a full platformer, or other game types in other videos.
Something of interest to any scratcher is the way I initiated the forever loops using the list of broadcasts at the start of the project. This is something 'new' I've been experimenting with as it results in the receiving scripts forever loops being executed in the same order as the events are broadcast in. This can be REALLY helpful to know!