Coding is actually a problem-solving process. The valid processes for solving a problem also apply to coding. In the problem solving process, it is necessary to identify and understand the problem. When coding, we must first determine what we want to do. When solving the problem, we can divide the problem according to the complexity of the problem. Likewise, after determining our purpose in coding, we have to separate the program into small components. In this way, the solution of the small components will be easier, so our patience will not be exhausted and we can reach the solution more easily.

The following activities are aimed at understanding the coding logic with Scratch. For the reasons explained above, we will determine the purpose or scenario before each activity and then divide it into smaller components. Scratch requires the understanding of the basic operations before making complex projects. The following activity includes basic uses. You can make different additions on these examples.

It should be noted that there may be multiple solutions to a problem. That is why you can produce more diverse and effective solutions. Please share the solutions you found in comments.

1th Activity: Orientation with Keys

Objective: Move an arrow in the right, left, up, down, and rotating directions. Understanding the coordinate plane.





With this activity, the coordinate plane, x and y axes and events (when the flag is clicked, the key is pressed) can be understood. You can access this event from the following link:

https://scratch.mit.edu/projects/287494791/



2nd Activity: Interactive Aquarium

Scenario: We will animate an aquarium. In the aquarium, several fish will roam the aquarium at different speeds. There will be a shark. Shark will be controlled by user with arrow keys. Shark will close and open its mouth while moving. The fish that touch the shark will be hidden. It will also appear again when you click on the flag.





A different way of directing with keys was used in this event. So created a code that works more effectively. This event also used the "if control" and "continuous repeat" cycle.

Recommended path for this event:

First of all, after you have done the coding of a single fish, add the other fish and copy the code you created first. Second, focus the movements of shark and code it.

You can access this event from the following link:

https://scratch.mit.edu/projects/288341478/

3th Activitiy: Walking and flaying animation

Objective: There will be a character walking down from start to finish, and a parrot flying and taking off an apple after fly with it in 6 seconds.





In this activity, a non-interacting animation example was designed with code blocks. Timing-related encodings are important in such animations.

Recommended path for this event:

The walking character has two different movements. These; change of position and change of costumes for walking. You can encode this character accordingly. Second, you can also encode the parrot character for flapping and moving events. You can encode the apple sprite so that the parrot will come to a standstill and then position it under his foot.

You can access this event from the following link:

https://scratch.mit.edu/projects/306187186/



4th Activitiy: Mouse follows mouse pointer

Objective: Make a mouse animation that continuously follows and walks to the mouse pointer.



In this activity, mouse pointer orientation, motion effect costume changing , and "if else" control structure is used. You can access this event from the following link:

https://scratch.mit.edu/projects/289028089/

5th Activitiy: Four Process Calculator

Objective: We will make a program that add, multiplies, divides and extracts two numbers. The numbers will be asked with character and operations can be optionally selected after the numbers are received.





The variable was used first time in this activity. In addition, the value was transferred to the variable with "ask and wait" sensing, the process was started with the release of news, and the added sprites were used as buttons. You can access this event from the following link:

https://scratch.mit.edu/projects/288341770/

6th Activity: Road-Speed-Time

Objective: To make a program that simply animates the time calculation movement according to the entered path length and speed.





In this activity

The value is taken from user and the value of another variable is calculated according to the values ​​taken.

Time dependent location change was made.

You can access this activity from the following link:

https://scratch.mit.edu/projects/287014668/



7th Activity: Angle Meter

Objective: The arrow drawn on the plane and positioned on the stage will turn to the clicked direction and the angle value made with the plane will be calculated.





In this activity,

Using the detection status as a condition, the arrow is returned to the clicked location on the screen,

In the calculation of angle variable, direction feature in Scratch is used.

You can access this event from the following link:

https://scratch.mit.edu/projects/288344856/

8th Activitiy: Bomb Destruction Game with the Right Angle

Objective: Based the previous activity angle meter, in this activity there will be done bomb shhoting game. If we can not shot the bomb in the air, it will fall to the ground andhealth bar will be reduced. If health bar finish that game will be finished.





In addition to the angle meter activity,

Pointing the sprite(Ball-Soccer) in the direction we want ,

Drop the bomb from a different horizontal position each time,

Reduce health bar through the broadcast.

Was made. These features that can be used frequently in game coding. You can access this activity from the following link:

https://scratch.mit.edu/projects/288347198/



9th Activitiy: Wheel Rotation

Objective: Wheel will be accelerate when gas increased(space key pressed), and slow down when not key pressed.





In this activity,

As the space key is pressed, the value of the gas variable is increased. The gas variable also affects the rotational speed of the wheel.

The block(function) named friction is defined.

More than one "flag clicked" is used for the simultaneous operation of codes.

You can access this event from the following link:

https://scratch.mit.edu/projects/288351716/

10th Activitiy: Writing with pencil

Objective: To encode the program to set typing using the Pen tool.

In this activity,

The logic of use of the pen tool is shown.

"If else" control is used.

When doing this activity, the trick is to set the center of the pencil sprite slightly apart from the tip of the pen. Otherwise the scratch wil not be correct. You can access this event from the following link:

https://scratch.mit.edu/projects/294089955/

11th Activitiy: Drawing simle ladder with pen tool

Objective: Draw a simple ladder using the pen tool.

In this activity a shape is smoothly drawn using the loop with the pen tool.

You can access this activity from the following link:

https://scratch.mit.edu/projects/294896488/











(To be continued...)