WEBVTT

00:00.000 --> 00:21.480
So far, you've learned to create amazing things with scratch, but what happens when things

00:21.480 --> 00:23.000
don't go as planned?

00:23.000 --> 00:29.440
Today, you'll become coding detectives, learning how to find and fix mistakes, known as bugs.

00:29.440 --> 00:34.480
This is called debugging, a super important skill for any Jung programmer.

00:34.480 --> 00:36.840
Try debugging a simple project.

00:36.840 --> 00:41.080
Work through the errors one by one until your project works correctly.

00:41.080 --> 00:44.520
You can use hints like a checklist of common mistakes.

00:44.520 --> 00:46.080
What is expected?

00:46.080 --> 00:51.840
When the green flag is clicked, ball sprite and paddle sprite should start moving.

00:51.840 --> 00:57.280
When ball sprite will touch paddle sprite, score should get changed by one.

00:58.280 --> 01:01.280
Step 1. Check both the codes given below.

01:01.280 --> 01:06.280
Step 2. Identify the mistake from the code for ball sprite.

01:06.280 --> 01:11.280
Step 3. Make changes you have identified so that score will start.

01:11.280 --> 01:17.280
Step 4. Test your new code to check if you get the desired output.

