Objectives: Create Sprites Create Sounds Create Objects Create Room Program simple game

Similar documents
GAME:IT Bouncing Ball

GAME:IT Junior Bouncing Ball

GAME:IT Junior Bouncing Ball

Before you start, you must go into Advanced Mode. Go to: File > Advanced Mode. You know you are in Advanced Mode when the checkmark appears.

Overview. The Game Idea

VACUUM MARAUDERS V1.0

2D Platform. Table of Contents

KEEPING SCORE: HOW TO USE SCORES, LIVES AND HEALTH

PING. Table of Contents. PING GameMaker Studio Assignment CIS 125G 1. Lane Community College 2015

04. Two Player Pong. 04.Two Player Pong

Game Maker Tutorial Creating Maze Games Written by Mark Overmars

Star Defender. Section 1

COMPUTING CURRICULUM TOOLKIT

Create a Simple Game in Scratch

G54GAM Lab Session 1

Tutorial: A scrolling shooter

Game Maker: Platform Game

Scratch for Beginners Workbook

CONCEPTS EXPLAINED CONCEPTS (IN ORDER)

More Actions: A Galaxy of Possibilities

5.0 Events and Actions

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

Game Design Curriculum Multimedia Fusion 2. Created by Rahul Khurana. Copyright, VisionTech Camps & Classes

Meteor Game for Multimedia Fusion 1.5

Tutorial: Creating maze games

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

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

BE SURE TO COMPLETE HYPOTHESIS STATEMENTS FOR EACH STAGE. ( ) DO NOT USE THE TEST BUTTON IN THIS ACTIVITY UNTIL THE END!

Your First Game: Devilishly Easy

Competitive Games: Playing Fair with Tanks

Lesson 2 Game Basics

Creating Computer Games

THE TECHNOLOGY AND CRAFT OF COMPUTER GAME DESIGN An introductory course in computer game design

Alibre Design Tutorial: Loft, Extrude, & Revolve Cut Loft-Tube-1

Step 1 - Setting Up the Scene

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

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. Kinect2Scratch Workbook

Chief Architect X3 Training Series. Layers and Layer Sets

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

InfoSphere goes Android Angry Blob

1 Sketching. Introduction

Beginner s Guide to Game Maker 4.3 Programming. Beginner s Guide to Game Maker 4.3 Programming

1 Shooting Gallery Guide 2 SETUP. Unzip the ShootingGalleryFiles.zip file to a convenient location.

For more information on how you can download and purchase Clickteam Fusion 2.5, check out the website

How to Make Smog Cloud Madness in GameSalad

Ghostbusters. Level. Introduction:

Moving Man Introduction Motion in 1 Direction

SolidWorks Tutorial 1. Axis

Introduction to Turtle Art

Photoshop CS6 automatically places a crop box and handles around the image. Click and drag the handles to resize the crop box.

Scrolling Shooter 1945

Tearing Cloth. In this tutorial we are going to go over another basic use of the cloth modifier. Ripping Cloth based on forces like wind.

Modeling Basic Mechanical Components #1 Tie-Wrap Clip

Kodu Game Programming

CS Problem Solving and Structured Programming Lab 1 - Introduction to Programming in Alice designed by Barb Lerner Due: February 9/10

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

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

House Design Tutorial

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!

Creating Photo Borders With Photoshop Brushes

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

After completing this lesson, you will be able to:

7.0 - MAKING A PEN FIXTURE FOR ENGRAVING PENS

Creo Extrude Tutorial 2: Cutting and Adding Material

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

Photo One Digital Photo Shoots and Edits

Instruction Manual. Pangea Software, Inc. All Rights Reserved Enigmo is a trademark of Pangea Software, Inc.

Introduction to Parametric Modeling AEROPLANE. Design & Communication Graphics 1

Getting Started. Before You Begin, make sure you customized the following settings:

Development Outcome 2

Davis Art Images: Create and Share Slideshows

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

The Games Factory 2 Step-by-step Tutorial

How To Graphically Analyze Production History Data

Using the Desktop Recorder

SAVING, LOADING AND REUSING LAYER STYLES

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.

Lab 3 Introduction to SolidWorks I Silas Bernardoni 10/9/2008

How to create a cove for cove lighting in DIALux In this tutorial you will learn how to make a cove similar to the one in the following image

Assignment 5 CAD Mechanical Part 1

House Design Tutorial

SCHEDULE USER GUIDE. Version Noventri Suite Schedule User Guide SF100E REV 08

Making Standard Note Blocks and Placing the Bracket in a Drawing Border

Excel Tool: Plots of Data Sets

Arcade Game Maker Product Line Requirements Model

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

GlassSpection User Guide

Using Game Maker. Getting Game Maker for Free. What is Game Maker? Non-event-based Programming: Polling. Getting Game Maker for Free

Using Game Maker. Oregon State University. Oregon State University Computer Graphics

Mediasite Desktop Recorder: Recording a Lecture 2017

Creo Revolve Tutorial

AutoCAD 2D. Table of Contents. Lesson 1 Getting Started

House Design Tutorial

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

Instructions for using Object Collection and Trigger mechanics in Unity

ARCHICAD Introduction Tutorial

Kitchen and Bath Design Tutorial

Managing images with NewZapp

Getting Started. with Easy Blue Print

Appendix B: Autocad Booklet YR 9 REFERENCE BOOKLET ORTHOGRAPHIC PROJECTION

Transcription:

GAME:IT Bouncing Ball Objectives: Create Sprites Create Sounds Create Objects Create Room Program simple game

All games need sprites (which are just pictures) that, in of themselves, do nothing. They are the elements that make up the game parts. The sprites are later turned into objects (which can be programmed). Backgrounds are just that they are what you see in the background. Backgrounds are colors, or textures, or even pictures. The backgrounds are later used as part of the rooms. Sounds are little files (usually.wav files) that add another dimension to games. They are used directly in the programming. Rooms are the playing fields for the games. If you want to change the playing field, you change the room. Rooms can be changed to different sizes and detail.

Creating a New Game Where do I start? When starting a new program, typically you create the sprites & backgrounds first. The objects are then created from the sprites. Objects are important because they can be programmed to do things (sprites cannot). Rooms are created next because objects and backgrounds are needed to create the rooms. When the room is set up, programming the events and actions of the objects can take place and be tested for errors. If you know what sounds you are using, they can be created before programming starts or added later to enhance the game.

Your first game will be simple to demonstrate a few of the elements of Game Maker. The game will involve a ball bouncing around the room and making a sound when it hits the wall.

If you look at the game you should notice it has (1) a smiley face, (2) a red border, and (3) a lime green background.

To create the smiley face, you will need to create a sprite. 1) Select the sprite icon 2) Enter the name of the sprite in this case spr_ball. 3) You now have 2 options: #1-create your own sprite (we will do this later) or #2-load a pre-existing sprite. To load a pre-existing sprite, click the Load Sprite button.

1) Click on Computer

1) Double-click on your Z drive (You may need to scroll down to find it)

1) Double-click on your Game Maker folder (You may need to scroll down to find it)

1) Double-click on Game 1 Bouncing Ball

1) Double-click on Game 1 Resources

1) Click on ball.png 2) Click on Open NOTE if you double-click ball.png it will do both steps

1) Once the ball is loaded, click on the OK button to finish. Now do the same for wall and create spr_wall (this creates a 2 nd sprite)

To create the wall, you will need to create a sprite. 1) Select the sprite icon 2) Enter the name of the sprite in this case spr_wall. spr_wall 3) You now have 2 options: #1-create your own sprite (we will do this later) or #2-load a pre-existing sprite. To load a pre-existing sprite, click the Load Sprite button.

1) Notice that this time it remembered the folder where you got ball.png 2) Click on wall.png 3) Click on Open

1) Once the wall is loaded, click on the OK button to finish.

To create a sound 1) Click on the sound icon 2) Name the sound (snd_beep) 3) Load the sound from the Game 1 Resouce file 4) Click OK

By the way.... Why is it important to carefully label sprites, sound, backgrounds, rooms, and objects? It s just GOOD programming it helps you to save time later in searching for mistakes or making good changes to your game. What are good examples? It only takes a few seconds to type in something that could cause minutes/hours of frustration. spr_ball, spr_wall, snd_beep, bckgd_desert, obj_plane What are BAD examples? spr01, sound1, background, plane (is it a sprite or object?)

Now we need to create objects. But I don t understand we created sprites -- they look the same? The difference is sprites are just pictures, but objects can be programmed in Game Maker. How to create objects: 1) Click the Create an Object icon 2) Give it a name (obj_ball) 3) Select the correct sprite (spr_ball) to associate with this object. To do so, click the little icon and find the item

Next, create the wall object next following the same steps. The objects have additional features that need to be addressed visible/solid? What is visible? Most items in your games will be visible but sometimes you need special pieces to be invisible (like walls and floors) to bounce off of or collide with.? What is solid? It is a state of being for an object solid you can collide with or bounce off of- not solid you will pass right through. Check both for the ball. Click OK to save that object.

1) Click the Create an Object icon 2) Give it a name (obj_wall) obj_wall 3) Select the correct sprite (spr_wall) to associate with this object. To do so, click the little icon and find the item

The objects have additional features that need to be addressed visible/solid? What is visible? Most items in your games will be visible but sometimes you need special pieces to be invisible (like walls and floors) to bounce off of or collide with. obj_wall spr_wall? What is solid? It is a state of being for an object solid you can collide with or bounce off of- not solid you will pass right through. Check both for the ball. Click OK to save that object.

Next we create our first room 1) Select the Create a room icon 2) Select background tab 3) Select a color

To add objects to the room: 1) Make sure Snap X and Y are set to 16 2) Click on the objects tab 3) Select the object you wish to add (submenu will appear). In this case, we ll add the obj_wall. 4) Add the obj_wall all around the outside of the room to create a border. Left mouse adds Right mouse removes HINT Click & drag with the left mouse key depressed while holding down the Shift key will add the object quickly. 4) Add in ball (anywhere in middle)

Time to Program! The actual programming occurs in the OBJECTS we have created: obj_ball and obj_wall. With the room set up and the objects in the room, what do we want the ball to do? 1) Bounce off the walls 2) Make a beep when it hits the wall. In this case, all the programming takes place in the obj_ball.

1) Recall your obj_ball by double clicking on it in the the side bar to open the Object Properties window for obj_ball. 2) Click on the Add Event

What are EVENTS? Create Event: You use this when you want an object to be created at the beginning of the game or during (as opposed to placing the object in the room during room creation) Destroy Event: Whenever you destroy this object, it would set in motion any actions that accompany it (seldom used).

What is? Alarm(s): Each object has 12 alarms. The alarm counts down from whatever you set and when it reaches 0, the action occurs. Example: Object changes direction every 30 steps. FYI: Action must reset alarm. Step Event: Happens every step of the game. Can be used to continuously check to see if something has happened. Examples: When score exceeds 10 do this, when score exceeds 100 do this.

What is? Collision Event: When 2 objects collide, you want these actions to occur. Example: When bomb collides with object create an explosion sprite... Keyboard Event: When a player presses a certain key on the keyboard, the actions will occur. You get the action in every step as long as the key is depressed. There is a <no key> event and an <any key> event.

What is? Mouse Event: This would occur when the mouse cursor touches the object. You can select left, right or middle buttons. Other Events: Miscellaneous collection of special purpose events. Example: Outside room (when the object goes outside of the room do this action.

What is? Draw Event: Mostly used to display score or lives remaining or other information relevant to the game. FYI: Object must be checked visible! Key Press: Only happens once at key press (not continuously). Key Release: Only happens once at key release (not continuously).

1) Select the Create event from the Add Events menu. 2) Select the Move Fixed from the actions menu (Move tab) and drag it into the Actions area. 3) Double click on the icon in the actions area and a sub-menu should pop up. 4) Select the 4 corners of the directions and enter 5 as the speed. Leave the relative button unchecked at this point.

Next, select another add event this time Collision The collision should be with obj_wall.

When it collides with obj_wall you want it to bounce off so select the Bounce action and drag it into the action section. It applies to Self Precise: Precisely Against: solid objects Click on OK to save

To get the sound to work: Still in collision with wall add a Play Sound action from the Main 1 folder. Select the sound: snd_beep (loop stays at false).

Save the Game name it Game1_yourname It s is now ready to play! Click the green arrow to test and play your game. Assignments: 1) Modify the game so that the when you click your left mouse on the ball, it will disappear. Save it as Game1A_yourname 2) Modify the game so that the when you click your left mouse on the ball, it changes direction and increases speed (hint: relative button). Save it as Game1B_yourname 3) Modify the game so that the when you click your left mouse on the ball, it changes direction and increases speed and if you right click on it, the ball changes direction and slows down. Save it as Game1C_yourname