Curso de Scratch 3.0 desde cero🙀 Para principiantes
Introduction to Scratch 3.0
What is Scratch?
- Scratch 3.0 is a graphical programming language and integrated development environment designed for creating various projects, including video games.
- Users can create a wide range of projects such as animations, video games, comics, and more, utilizing the extensive capabilities of Scratch.
Accessing Scratch
- To access Scratch, simply search "Scratch" on Google and click the official website link (scratch.mit.edu).
- The homepage features categories like animations, games, music, stories, and tutorials that showcase user projects.
Creating Projects in Scratch
Starting Your Own Project
- Users can start creating their own projects directly on the web platform by clicking "Create" or download the desktop version for offline use.
- It’s recommended to use the web version for online project saving and accessing the latest updates.
User Interface Overview
- Upon opening Scratch Web by clicking "Create," users are greeted with an introduction tutorial card that is optional to follow.
- The default interface language is English but can be changed to Spanish (Spain or Latin America), affecting block names while maintaining functionality.
Understanding Blocks and Code Execution
Block Libraries
- The screen layout consists of three sections: a block library on the left (movement, appearance, sounds), a coding area in the middle for executing blocks, and a preview section on the right.
Object Management
- Each object has its own code, costumes (disguises), and sounds; objects can be created or duplicated easily within the interface.
- Deleting or modifying one object's code does not affect others; this allows independent customization of each object.
Executing Code in Scratch
Methods of Execution
- There are three ways to execute code: dragging blocks into the coding area and clicking them; clicking blocks directly without dragging; or stacking blocks together for compound actions.
Compound Actions
How to Execute Multiple Code Blocks Simultaneously in Scratch
Using Events for Parallel Execution
- The speaker discusses executing code from two objects simultaneously by using events, specifically placing the code of object 2 within the event triggered by clicking the flag.
- By clicking on the flag, both objects' codes can run at the same time without needing individual clicks for each object.
Essential Movement and Appearance Blocks
- Key movement blocks include "move," "turn," "go to a specific position," and "point in direction." These are fundamental for controlling object movements.
- In appearance blocks, important functions include changing size, switching costumes, showing/hiding effects, and sound blocks like "play sound" and "start sound," which have subtle differences.
Saving Projects in Scratch
- To save a project locally, users should click on 'File' then 'Save to your computer.' For saving on Scratch's web platform, creating an account is necessary.
- After logging into Scratch, users can title their projects and save them directly online. Accessing saved projects is done through a folder next to the username.
Moving Objects with Keyboard Input
- A practical exercise involves programming an object to move up, down, left, or right based on key presses. This requires setting up event triggers for key presses.
- The movement block depends on the object's current direction; users can see this direction displayed below the preview screen.
Adjusting Object Direction
- Users can modify an object's direction either by changing values directly or dragging arrows. Setting precise angles (e.g., 90 degrees for right or -90 degrees for left) helps control movement accurately.
- To keep an image static while allowing directional changes, one can set rotation styles (e.g., left-right only), preventing unwanted rotations when moving up or down.
Programming Multi-Directional Movement
- When pressing arrow keys (left/right), corresponding blocks are duplicated and adjusted to allow movement in those directions effectively.