🎮 Membuat Game Hunting Bird di Scratch - Part 02

Zubair Kids
22 Nov 202214:37

Summary

TLDRThis tutorial walks through the process of creating a bird hunting game using Scratch, focusing on essential game mechanics like scoring, speed, and failure conditions. Viewers learn how to create variables for points, speed, and shot failures, as well as how to reset the game after specific conditions are met. The tutorial also demonstrates how to randomize the bird's position and adjust game speed based on player performance. Additionally, it covers setting a backdrop for the game and how to display a 'Game Over' screen. The video encourages hands-on practice and learning through clear, step-by-step guidance.

Takeaways

  • 😀 Set up variables like points, missed shots, and speed to track gameplay progress in the 'Hunting Birds' game.
  • 😀 Use the 'set' and 'change' blocks in Scratch to adjust the player's score (points) and track successful hits.
  • 😀 The 'missed shots' variable is incremented when a bird crosses the screen without being hit, contributing to game failure conditions.
  • 😀 To manage game resets, use broadcasting and the 'stop all' block when the player reaches 3 missed shots.
  • 😀 Speed can be controlled using a 'speed' variable to influence the bird's movement, initially set to a low value.
  • 😀 Create random bird positions by setting a range on the Y-axis for variation, enhancing gameplay difficulty.
  • 😀 Upon game over, change the background and display a 'Game Over' message to notify the player of their failure.
  • 😀 Reset game elements like the score and missed shots when the game restarts, ensuring a fresh start for players.
  • 😀 Adjust bird speed based on specific conditions in the game to increase difficulty over time (e.g., increasing speed after certain events).
  • 😀 Customizing the backdrop and adding text elements (like 'Game Over') can improve the visual experience and immersion for players.

Q & A

  • What is the primary objective of the tutorial in the script?

    -The primary objective of the tutorial is to teach users how to create a hunting bird game in Scratch, specifically focusing on implementing points, failure conditions, and adjusting speed within the game.

  • What is the first variable created in the game, and what does it represent?

    -The first variable created in the game is 'poin', which represents the score. It tracks the player's points, which increase when a bird is successfully shot.

  • How is the score updated when a player successfully shoots a bird?

    -The score is updated by using the 'change point by 1' block, which increases the point value by 1 each time a bird is successfully shot.

  • What is the purpose of the 'gagal tembak' variable, and how does it function?

    -'Gagal tembak' represents the number of failed shots. It increments by 1 every time the bird reaches the end of the screen without being shot.

  • What happens when the 'gagal tembak' variable reaches 3?

    -When 'gagal tembak' reaches 3, the game stops, and both the score and the 'gagal tembak' variables are reset to 0. The game also returns to its starting position.

  • How is the speed of the bird controlled in the game?

    -The speed of the bird is controlled using the 'speed' variable, which can be set to a specific value. Initially, the bird's speed is set to 5, but it can be adjusted later depending on the game's conditions.

  • Why is the speed set to 20 in the script, and how does it affect the game?

    -The speed is set to 20 for normal gameplay, making the bird move faster. It provides a dynamic challenge as the bird's speed can change based on the game conditions.

  • How does the random positioning of the bird work?

    -The bird's position is randomized using the 'random position' operator, which sets the bird's Y position to a random value between -50 and 150, allowing the bird to appear at different heights on the screen.

  • What is the purpose of changing the backdrop when the game ends?

    -The backdrop is changed to 'Blue Sky 2' to signal that the game is over. This visual cue lets players know that they have lost the game.

  • What should players do to reset the game after a game over?

    -To reset the game, players need to use the broadcast 'posisi awal' (starting position), which resets the bird's position and the game variables. Additionally, the backdrop and the speed are reset to their initial values.

Outlines

plate

This section is available to paid users only. Please upgrade to access this part.

Upgrade Now

Mindmap

plate

This section is available to paid users only. Please upgrade to access this part.

Upgrade Now

Keywords

plate

This section is available to paid users only. Please upgrade to access this part.

Upgrade Now

Highlights

plate

This section is available to paid users only. Please upgrade to access this part.

Upgrade Now

Transcripts

plate

This section is available to paid users only. Please upgrade to access this part.

Upgrade Now
Rate This

5.0 / 5 (0 votes)

Related Tags
Scratch TutorialGame DesignBird HuntingProgramming BasicsGame MechanicsSpeed ControlScore SystemFailure ConditionRandom PositionGame Reset