The If Block. IF The “if” block can be found in the control tab. The if block means, “IF this happens, THEN do this.” You can put blocks ON the if block.

Slides:



Advertisements
Similar presentations
Sprite-visual object (actor on the stage) Scripts- Tells actors (sprites) what to do.
Advertisements

Create a Simple Game in Scratch
Summer Computing Workshop. Introduction to Variables Variables are used in every aspect of programming. They are used to store data the programmer needs.
Create a Simple Game in Scratch
Michael Parkes Dudley LA What can Scratch do? Make simple games, animations, presentations and stories.
Events The brown events block in Scratch starts script's when certain things happen. For example, when the user presses a key, clicks sprites, or uses.
Harry Potter Scratch Game
Code Club Session 3 Shark Eats Fish. Picture of finished product here.
Write Your First Computer Game!. Coding: Programming Languages Just like you can speak Chinese to someone who understands Chinese to tell them what to.
RSpec. Testing with RSpec Test::Unit “does the job”, but it would be nice if tests would be more descriptive, more Enlgish-like RSpec uses some Ruby magic.
Mrs. Chapman. Tabs (Block Categories) Commands Available to use Script Area where you type your code Sprite Stage All sprites in this project.
Scratch Programming Session 9 of 10 Review elements to use in stories, games, etc.
©2006 CSUC Institute for Research in Intelligent Systems Introduction to Coding June 15, 2006.
Racing Car Game Using the keys to control a sprite.
Programming – Touch Sensors Intro to Robotics. The Limit Switch When designing robotic arms there is always the chance the arm will move too far up or.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech Oct 2010.
Mr. Wortzman. Tabs (Block Categories) Available Blocks Script Area Sprite Stage All sprites in this project.
Fish Chomp. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
A Scratch tutorial. Description: You have 6 bullets to shoot at 2 targets. Every time you hit any of them you get two extra bullets but the targets get.
INTRODUCTION TO THE SCRATCH PROGRAMMING ENVIRONMENT.
In.  This presentation will only make sense if you view it in presentation mode (hit F5). If you don’t do that there will be multiple slides that are.
Using MIT Scratch for Programming and Control Exercise 3 Ball Game Year 9 ICT Autumn Term 2007.
M Y S CRATCH D EMONSTRATION Rita Coulon. S TORY T ELLING This lesson could be used to: Practice writing skills or to s ummarize learning objectives and.
How to make a Shooting Target game in Scratch!. WE ARE GOING TO MAKE A TARGET GAME. This game will have: A Target that will move when clicked. A Timer.
Scratch Programming Lesson 2 First glance to programming logic.
1 Understand how to use Scratch to: – Animate a sprite – Add sound to your script – Use the forever command to create a loop Lesson 2: Learning Objectives.
“What ever the mind of man can conceive and believe, it can achieve.”
Digital Art in Scratch part 1 Barb Ericson Georgia Tech May 2011.
Fish Chomp. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
Motion 3. Motion Block Motion blocks allow you to program the Sprite’s movement. You can move it to different location, rotate, move towards the mouse.
24 Background Building 25 Computing Terminology, and Speed/Velocity Module 4 Notes: Sensing, Or Operator, Conditional Logic 28 Module 4 Algorithms,
Top tips for our students: 1.Protect your online reputation: use the services provided to manage your digital footprints and ‘think before you.
Marble Racer. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
Unit 6 Motion – Air Hockey Evangel College S.2 ICT.
How to create a basic game in Scratch. The Scratch Stage The Scratch stage is 480 pixels wide and 360 pixels high x increasesx decreases.
BEGINNER FLL PROGRAMMING WORKSHOP BY DROIDS ROBOTICS & EV3LESSONS.
Scratch Programming Lesson 1 Moving objects with sound and changing colours.
Lives and Scoring Games Programming in Scratch. Games Programming in Scratch L2 Lives and Scoring Learning Objectives Define a variable Understand the.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
Introducing Scratch Learning resources for the implementation of the scenario
Objective of the lesson Use Blockly to make a dice for Snakes and Ladders All of you will: – Make an image which displays when you press a button Most.
Game Maker Tutorials Introduction Clickball IntroductionClickball Where is it? Shooting Where is it?Shooting.
School of Computer Science Space School 2015 Programming a Lunar Lander Game.
DAY 4. MAKING SOMETHING ‘JUMP’ Simple! Move it a certain amount ‘up’ Glide back to your original spot.
Kodu Tinkering. Today we are learning about: Kodu & Tinkering ●I can explore Kodu for myself.
Games Programming in Scratch
Scratch for Interactivity
Scratch: iteration / repetition / loops
Programming Scratch to Control a K’NEX Fairground Ride
Objective of the lesson
Stopwatch Cards Stopwatch Cards
Dance Cards Dance Cards
Objective of the lesson
Scratch – Simple Programming
Sensing and Variables.
Objective of the lesson
Objective of the lesson
(More) Basic blocks Broadcasting messages
Objectives To understand how the pen tool works
Stopwatch Cards Stopwatch Cards
مديريت موثر جلسات Running a Meeting that Works
Flappy bird Demo: Lesson 5 Flappy bird Demo:
Stopwatch Cards Stopwatch Cards
Stopwatch Cards Stopwatch Cards
Sensing and Variables.
Stopwatch Cards Stopwatch Cards
I do belive something happens.
Stopwatch Cards Stopwatch Cards
Presentation transcript:

The If Block

IF The “if” block can be found in the control tab. The if block means, “IF this happens, THEN do this.” You can put blocks ON the if block and IN the if block.

Sensing Blocks Most of the blocks that fit ON the if block are sensing blocks, which can be found in the sensing tab. Different sensing blocks can detect if a key is pressed, if the sprite is touching something, or if the sprite moves to a certain position.

Forever If Usually, you don’t want to just run the if block once, you want it to always be running. To make it run forever you can either put it in a forever block.