How to use loops in ScratchJR

The loop type in ScratchJR is to make a certain detail move continuously in the animation, such as clouds in the sky, birds flying in the sky,... With this loop setting, students will make their animation more fresh, creating rich content. Below are instructions for using loops in ScratchJR.

How to use loops in ScratchJR

Step 1:

You reopen the animation created in the previous lesson and then click on animation 1. Next, you click on the plus sign in the character window to add a new character .

How to use loops in ScratchJR

Step 2:

Show the interface for you to add the character that will move continuously in this animation and then press the v sign above to add it to the program.

How to use loops in ScratchJR

Step 3:

After adding a new character to the scene, such as the Sun, we click on the green flag to start building the program.

How to use loops in ScratchJR

Next, you can add the Sunrise command and move slowly with the speed command, move to the right and disappear and return to the first position. At the end of the command line is a red command so that this process is repeated in 1 animation. Note, students can use the repeat command for a certain action.

The speed command in ScratchJR as shown below to adjust the moving speed of the Sun.

How to use loops in ScratchJR

The Repeat command is as below . You will set the Sun to move to the right 4 times, then you can add a zoom command for the Sun.

How to use loops in ScratchJR

Continue building the sun moving to the right 4 times then add a small effect and finally use the red loop icon as shown.

How to use loops in ScratchJR

The loop command in ScratchJR has the icon as shown below.

How to use loops in ScratchJR

The program is completed for the Sun with commands to move in and out continuously in the animation as shown below.

How to use loops in ScratchJR

Students can add other characters such as clouds with move commands such as the picture.

How to use loops in ScratchJR

Leave a Comment

Enable SLES Live Patching and Verify a Kernel Fix

Enable SLES Live Patching and Verify a Kernel Fix

Set up the right Live Patching path for SLES 16.0 or 15 SP7, apply eligible kernel fixes, and confirm what is active without confusing it with a reboot-required kernel update.

Install and Sign Custom Kernel Modules on SLES 15 Secure Boot

Install and Sign Custom Kernel Modules on SLES 15 Secure Boot

Load a custom SLES 15 kernel module without disabling Secure Boot. Match the running kernel, sign the .ko file, enroll a MOK key, and verify loading.

Keep Services Available During a SLES 15 SP5 to SP6 Upgrade

Keep Services Available During a SLES 15 SP5 to SP6 Upgrade

SLES 15 SP5 can migrate online to SP6, but each node must reboot. Use a tested rolling upgrade or blue-green cutover to keep workloads reachable.

Apply the SLES 15 STIG Safely with OpenSCAP

Apply the SLES 15 STIG Safely with OpenSCAP

Use SUSE’s supported STIG profile to scan SLES 15, test remediation, review remaining findings, and retain assessment evidence.

Restore Cockpit Access to SUSE Linux Enterprise Server

Restore Cockpit Access to SUSE Linux Enterprise Server

Trace a failed Cockpit connection through DNS, port 9090, the systemd socket, firewalld, TLS, and login settings using current SUSE guidance.

Configure Reliable Ethernet Failover with SLES 15 Bonding

Configure Reliable Ethernet Failover with SLES 15 Bonding

Create a redundant Ethernet connection on SLES 15 with YaST and Wicked, configure active-backup bonding, and verify both ports and failover.

Build a Reusable AutoYaST Profile for SLES 15 Installs

Build a Reusable AutoYaST Profile for SLES 15 Installs

Turn an existing SLES 15 system into a reviewed AutoYaST profile, validate it, and use it to deploy a test server with fewer manual steps.

SLES 15 KVM Setup: Make Selected VMs Start at Boot

SLES 15 KVM Setup: Make Selected VMs Start at Boot

Install the SLES 15 KVM and libvirt tools, enable the right host service, and configure selected virtual machines to start after a reboot.

Diagnose a SUSE Server That Hangs at the systemd Shutdown Screen

Diagnose a SUSE Server That Hangs at the systemd Shutdown Screen

Use systemd jobs and the previous boot journal to locate a slow service, mount, or storage dependency, then correct it without masking the cause.

Open Only the Web Traffic Your SLES 15 Server Needs

Open Only the Web Traffic Your SLES 15 Server Needs

Use firewall-cmd to inspect the active zone, allow HTTP safely, preserve SSH access, and verify that the rule survives a reload on SLES 15.