Create Your Own World

Similar documents
Create Your Own World

Memory. Introduction. Scratch. In this project, you will create a memory game where you have to memorise and repeat a sequence of random colours!

Brain Game. Introduction. Scratch

Clone Wars. Introduction. Scratch. In this project you ll learn how to create a game in which you have to save the Earth from space monsters.

In this project, you will create a memory game where you have to memorise and repeat a sequence of random colours!

Lost in Space. Introduction. Scratch. You are going to learn how to program your own animation! Activity Checklist.

In this project you ll learn how to create a times table quiz, in which you have to get as many answers correct as you can in 30 seconds.

In this project you ll learn how to create a platform game, in which you have to dodge the moving balls and reach the end of the level.

Rock Band. Introduction. Scratch. In this project you ll learn how to code your own musical instruments! Activity Checklist.

Let s start by making a pencil, that can be used to draw on the stage.

In this project you ll learn how to create a game in which you have to save the Earth from space monsters.

In this project you ll learn how to create a game, in which you have to match up coloured dots with the correct part of the controller.

ChatBot. Introduction. Scratch. You are going to learn how to program your own talking robot! Activity Checklist. Test your Project.

Add in a new ghost sprite, and a suitable stage backdrop.

Scratch for Beginners Workbook

Whack-a-Witch. Level. Activity Checklist Follow these INSTRUCTIONS one by one. Test Your Project Click on the green flag to TEST your code

Let s start by making a pencil that can be used to draw on the stage.

Ghostbusters. Level. Introduction:

Create a game in which you have to guide a parrot through scrolling pipes to score points.

Create a Simple Game in Scratch

Game Making Workshop on Scratch

Pong Game. Intermediate. LPo v1

In this project we ll make our own version of the highly popular mobile game Flappy Bird. This project requires Scratch 2.0.

Step 1 : Earth and Mars Orbit the Sun

You are going to learn how to create a game in which a helicopter scores points by watering flowers in the city.

Fireworks. Level. Introduction: In this project, we ll create a fireworks display over a city. Activity Checklist Follow these INSTRUCTIONS one by one

Introduction to Turtle Art

Open the Tech Toys Scratch project. Your club leader will give you a copy of this project, or you can open it online at jumpto.cc/toys-go.

Where's the Treasure?

In this project you ll learn how to code your own musical instruments!

Lesson 8 Tic-Tac-Toe (Noughts and Crosses)

Creating Computer Games

AIM OF THE GAME GLACIER RACE. Glacier Race. Ben Gems: 20. Laura Gems: 13

Explore and Challenge:

Alright! I can feel my limbs again! Magic star web! The Dark Wizard? Who are you again? Nice work! You ve broken the Dark Wizard s spell!

Lesson 2 Game Basics

Teaching Kids to Program. Lesson Plan: Interactive Holiday Card

Copyright 2017 MakeUseOf. All Rights Reserved.

pla<orm-style game which you can later add your own levels, powers and characters to. Feel free to improve on my art

How to use Photo Story 3

How to do automatic horizontal background scrolling in Scratch

GAME PROGRAMMING & DESIGN LAB 1 Egg Catcher - a simple SCRATCH game

Flappy Parrot Level 2

Pong! The oldest commercially available game in history

Scratch Primary Lesson 5

Overview. The Game Idea

Programming I (mblock)

Assessment. Self Assessment. Teacher Assessment. Date Learning Objective(s) Achievement or. NC Level: Game Control Student Booklet P a g e 1

user guide for windows creative learning tools

Scratch Programming Lesson 13. Mini Mario Game Part 4 Platforms

Fish Chomp. Level. Activity Checklist Follow these INSTRUCTIONS one by one. Test Your Project Click on the green flag to TEST your code

More Actions: A Galaxy of Possibilities

Programming with Scratch

In this project, you ll learn how to create 2 random teams from a list of players. Start by adding a list of players to your program.

Before displaying an image, the game should wait for a random amount of time.

Starting from LEARNER NOTES edited version. An Introduction to Computing Science by Jeremy Scott

Module 4 Build a Game

Kaltura CaptureSpace Lite Desktop Recorder: Editing, Saving, and Uploading a Recording

a. the costumes tab and costumes panel

Parallax Scrolling Tutorial Created in Drogheda by Seamus Minogue and updated for Clonakilty CoderDojo 15/06/2012 PARALLAX SCROLLING

SAMPLE CHAPTER

2D Platform. Table of Contents

A. creating clones. Skills Training 5

Further Mathematics Support Programme

The Joy of SVGs CUT ABOVE. pre training series 3. svg design Course. Jennifer Maker. CUT ABOVE SVG Design Course by Jennifer Maker

CISC 1600, Lab 2.2: More games in Scratch

Some code for this game has been provided for you. Open this trinket: This is a very basic RPG game that only has 2 rooms. Here s a map of the game:

Cato s Hike Quick Start

STEP-BY-STEP THINGS TO TRY FINISHED? START HERE NEW TO SCRATCH? CREATE YOUR FIRST SCRATCH PROJECT!

04. Two Player Pong. 04.Two Player Pong

The Beauty and Joy of Computing Lab Exercise 10: Shall we play a game? Objectives. Background (Pre-Lab Reading)

Star Defender. Section 1

Part II: Number Guessing Game Part 2. Lab Guessing Game version 2.0

DESIGN A SHOOTING STYLE GAME IN FLASH 8

Ada Lovelace Computing Level 3 Scratch Project ROAD RACER

Making Your World with the Aurora Toolset

Project 1: Game of Bricks

CR7: Common Problems and Their Solutions

In this project you will learn how to write a Python program telling people all about you. Type the following into the window that appears:

Maze Puzzler Beta. 7. Somewhere else in the room place locks to impede the player s movement.

Game Maker Tutorial Creating Maze Games Written by Mark Overmars

GameMaker. Adrienne Decker School of Interactive Games and Media. RIT Center for Media, Arts, Games, Interaction & Creativity (MAGIC)

G54GAM Lab Session 1

Tutorial: Creating maze games

5.0 Events and Actions

The purpose of this document is to help users create their own TimeSplitters Future Perfect maps. It is designed as a brief overview for beginners.

Unit 6.5 Text Adventures

Unit 5: What s in a List

FAQ for City of Tacoma employees

Pong! The oldest commercially available game in history

Creating Transparent Floors. Creating Transparent Floors. Contents. Introduction. Requirements. By Cyclonesue, 1 July 2006

Getting Started with Osmo Coding Jam. Updated

Adding in 3D Models and Animations

GAME:IT Junior Bouncing Ball

1. Creating geometry based on sketches 2. Using sketch lines as reference 3. Using sketches to drive changes in geometry

EG1003 Help and How To s: Revit Tutorial

The original image. Let s get started! The final rainbow effect. The photo sits on the Background layer in the Layers panel.

Introducing Scratch Game development does not have to be difficult or expensive. The Lifelong Kindergarten Lab at Massachusetts Institute

Addendum 18: The Bezier Tool in Art and Stitch

Lesson 1 Getting Started. 1. What are the different ways you interact with computers?

Transcription:

Scratch 2 Create Your Own World All Code Clubs must be registered. Registered clubs appear on the map at codeclubworld.org - if your club is not on the map then visit jumpto.cc/ccwreg to register your club. Introduction In this project you ll learn how to create your own open world adventure game. Activity Checklist Test your Project Save your Project Follow these INSTRUCTIONS one by one Click on the green flag to TEST your code Make sure to SAVE your work now 1

Step 1: Coding your player Let s start by creating a player that can move around your world. Activity Checklist 1. Start a new Scratch project, and delete the cat sprite so that your project is empty. You can find the online Scratch editor at jumpto.cc/scratch-new. 2. For this project, you should have a Project Resources folder, containing all of the images you ll need. Make sure that you can find this folder, and ask your club leader if you can t find it. 3. Add the image room1.png as a new stage backdrop, and the image player.png as a new sprite. If you don t have these images you can draw them yourself! Here s how your project should look: 2

4. Let s use the arrow keys to move the player around. When the player presses the up arrow, you want the player to move up, by changing its y coordinate. Add this code to the player sprite: 5. Test out your player by clicking the flag and then holding down the up arrow. Does your player move up? 3

6. To move the player to the left, you need to add another if block to your player, which changes the x coordinate: Challenge: Moving in all four directions Can you add more code to your player, so that they can move up, down, left and right. Use the code you already have to help you! Save your project Test out your player again, and you ll see they have the ability to walk through the light grey walls. 4

To fix this, you need to move the player, but then move them back if they re touching a light grey wall. Here s the code you ll need: Notice that the new if touching color block is inside the if key [up arrow] block. Test this new code by moving below the wall - you shouldn t be able to move up into it. Let s do the same for the left arrow, moving back if the player is touching a wall. This is how your player code should look so far: 5

Challenge: Fixing your player s movement Add code to your player so that you can t walk through walls in any direction. Use the code you already have to help you! Save your project Step 2: Coding your world Let s allow the player to walk through doors into other rooms! Activity Checklist 1. Add 2 more backdrops to your stage ( room2.png and room3.png ), so that you have 3 backdrops in total. Make sure that they are in the right order - this will help you later. 6

2. You ll need a new variable called room, to keep track of what room the player is in. 3. When the player touches the orange door in the first room, the next backdrop should be displayed, and the player should move back to the left side of the stage. Here s the code you ll need - it should go inside the player s forever loop: 4. Add this code to the start of your player code (before the forever loop) to make sure that everything is reset when the flag is clicked: 7

5. Click the flag and move your player over the orange door. Does your player move to the next screen? Does the room variable change to 2? Challenge: Moving to the previous room Can you make your player move to the previous room when they touch a yellow door? Remember that this code will be very similar to the code you ve already added for moving to the next room. Save your project 8

Step 3: Signs Let s add signs to your world, to guide your player on their journey. Activity Checklist 1. Upload the image sign.svg as a new sprite, and rename the sprite welcome sign. 2. This sign will only be visible in room 1, so let s add some code to the sign to make sure that this happens: 3. Test your sign by moving between rooms. Your sign should only 9

be visible in room 1. 4. A sign isn t much good if it doesn t say anything! Let s add some more code (in another separate block) to display a message if the sign is touching the player: 5. Test out your sign, and you should see a message when the player touches it. Save your project 10

Challenge: Treasure! Can you add a new treasure chest sprite, using the image chest.svg. This treasure chest should be placed in room 3, and should say Well done! when the player touches it. Save your project Step 4: People Let s add other people to your world that your player can interact with. Activity Checklist 1. Add in a new person sprite, using the image person.png. 11

2. Add in this code, so that the person talks to your player. This code is very similar to the code you added to your sign: 3. You could also allow your person to move, by using these two blocks: Your person will act differently, depending on whether you place this code inside the forever loop or the if block. Try both and see which you prefer. 12

4. Have you noticed that your person flips upside-down. To stop this, click the sprite s information icon ( i ), and click the dot to fix to rotation style. Challenge: Improving your person Can you add code to your new person, so that they only appear in room 1? Make sure you test out your new code! 13

Save your project You can also add in patrolling enemies, who end the game if the player touches them. Add in a new enemy sprite, and change the rotation style, just like you did with the person sprite. Add code to your enemy, so that they only appear in room 2. You ll also need to add code to move the enemy, and to end the game if the enemy touches the player. It s easier to do this in separate code blocks. Here s how your enemy code should look: Test out your enemy, to make sure that: It s only visible in room 2; It patrols the room; The game ends if the player touches it. Save your project 14

Challenge: More enemies Can you create another enemy in room 3, that patrols up and down through the gap in the wall? Save your project Step 5: Collecting coins Activity Checklist 1. Add a new variable valled coins to your project. 2. Add a new coin sprite to your project. 1. Add code to your coin, so that it only appears in room 1. 2. Add code to your coin sprite, to add 1 to your coins once they ve been picked up: 15

The code stop other scripts in sprite is needed so that the coin stops being displayed in room 1 once it s been collected. 3. You ll also need to add code to set your coins variable to 0 at the start of your game. 4. Test your project - collecting your coins should change your score to 1. Challenge: More coins Can you add more coins to your game? They can be in different rooms, and some coins could even be guarded by patroling enemies. Step 6: Doors and keys Activity Checklist 1. Create a new sprite from your key-blue.svg image. Switch your stage to backdrop 3, and place the key somewhere difficult to reach! 16

2. Make sure that your key is only visible in room 3. 3. Create a new list variable called inventory. This will be where you store all of the items your player collects. 4. The code for collecting the key is very similar to the code for collecting coins. The difference is that you add the key to your inventory. 5. Test out your key, to see if you can collect it, and add it to your inventory. Remember to add code to your stage to empty your inventory at the start. 6. Create a new sprite from your door-blue.png image, and place your blue door across the gap in the two walls. 17

7. Add code to your door, so that it is only visible in room 3. 8. You ll need to hide your blue door to allow your player to pass once you have the blue key in your inventory. 9. Test out your project, and see if you can collect the blue key to open the door! Save your project Challenge: Create your own world You can now continue creating your own world. Here are some ideas: Change the setting of your game, and your game graphics; Add sound and music to your game; Add more people, enemies, signs and coins; Add red and yellow doors, that need their own keys to 18

open them; Add more rooms to your world; Add other useful items to your game; Use coins to get information from other people; You could even add north and south doors, so that the player can move between rooms in all 4 directions. For example, if you had 9 rooms, you could think of them as being in a 3x3 grid. You can then add 3 to the room number to move down 1 level. Save your project 19