Making Objects Move in Scrollers
Материал из Поле цифровой дидактики
Версия от 18:56, 30 мая 2021; scratch>TheTrillion (Made a level 3 heading into a level 2 heading.)
This tutorial explains how to make an object move in a scroller.
How it Works
The xpos variable determines how far the sprite should be offset from its original position if it were scrolling normally. This script makes it forever slide back and forth. This is similar to a Mario style platformer. Below is the script that is needed:
Шаблон:Note If a large costume is selected, it can be made to hide when it's touching the edge by adding this to the forever loop:
The following script will change the 'x pos' relative to the entire scrolling.