GAME:IT Helicopter Objectives: Review skills in making directional sprites Create objects that shoot and destroy for points Create random enemies on the.

Slides:



Advertisements
Similar presentations
GAME:IT Junior Ping Pong Objectives: Review skills from previous lessons Create a 2-player game Create a scoring display system Using old and new skills,
Advertisements

Whats New in Office 2010?. Major Changes in Office 2010 The Office Ribbon, which first made its appearance in Office 2007, now appears in all Office 2010.
BTEC 149. Windows Desktop Click on the Start Button.
Microsoft Excel. Click on “Start,” then “Microsoft Office Excel.”
Coloring Randomly: Random Selection in Alice By Jenna Hayes under the direction of Professor Susan Rodger Duke University July 2008.
COMPREHENSIVE Windows Tutorial 3 Personalizing Your Windows Environment.
Exploded CAD Assembly Models © 2012 Project Lead The Way, Inc.
Code Club Session 3 Shark Eats Fish. Picture of finished product here.
How to make a game on game maker 7. Start With an Idea Before you actually start making your game, you are going to need an idea as to what it is you.
Microsoft Excel 2010 Chapter 7
Justus Nyagwencha Game Maker. Getting started -> Resources The icons across the top are very important All the things you add to the game are called “Resources”.
1 An introduction to programming concepts with Scratch.
Google SketchUp Castle
GAME:IT Junior Bouncing Ball Objectives: Create Sprites Create Sounds Create Objects Create Room Program simple game.
GameMaker.  A lot of Different Definitions  Easier to Say What is NOT a Game  Movie is Not a Game  No Active Participation  Final Outcome is Fixed.
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.
GAME:IT Junior Pacman To create original sprites To animate sprites
Scratch the Cat. Object Oriented Programing Writing computer programs Based on Objects Instead of Actions Based on Data Instead of Logic.
Game Design Creating a game called PING Phase 3: Steps for building basic game.
Art 315 Lecture 4 Dr. J. Parker AB 606 Today’s class: Programming! We are going to write some simple programs. We will use a tool called GameMaker –It.
Code Club Session 2 Dance Party. What will we learn ?  How to change the background  How to create animations  How to make objects talk to each other.
GAME:IT Bouncing Ball Objectives: Create Sprites Create Sounds Create Objects Create Room Program simple game.
Game Maker Day 2 Making a Maze Game.
Introduction to the WebBoard Terry Dennis. The WebBoard - Our Connection The WebBoard URL is
Scratch Programming. Objectives for Today Finish your online design math problem. Name the basic terms used in Scratch. Create the beginning of a simple.
PowerPoint Tutorial. Basic Vocabulary ► Slide - Presentation - Slide layout – ► ► ► a single page in PowerPoint all the slides for a speech all the slides.
Making a Playable DVD movie using your digital photos And adding music to the movie.
Using MIT Scratch for Programming and Control Exercise 3 Ball Game Year 9 ICT Autumn Term 2007.
Learning Game Maker Studio:
We will be creating a spaceship that simulates real movements in space. The spaceship will fire a laser beam that can destroy targets. The spaceship will.
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.
Photo Story 3 Importing Pictures. When you create a new Photo Story, the first thing that you will do is import pictures. You can import pictures from.
ACTIVINSPIRE TRAINING Tips and tools for creating Flipcharts on ActivInspire.
GAME:IT Pinball Objectives: Review skills from Introduction Introduce gravity and friction Introduce GML coding into programming.
Game Maker Terminology
Game Maker – Getting Started What is Game Maker?.
Shooters in GameMaker J Parker.
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.
Game Maker Galactic Mail Advanced Group: Complete Galactic Mail, then start developing an independent project.
Game Maker Tutorial.
2D Platform Game Game Maker Terminology. Object  Item in a game that has behavior, such as a main character who can move.
Derived from Kirill Muzykov’s Rocket Mouse Tutorial WakeUpAndCode.com.
Tutorial for Arrays and Lists. Description This presentation will cover the basics of using Arrays and Lists in an Alice world It uses a set of chickens.
CPS-Student Response System Dottie Betts ITRT June 2009.
Chapter 3 Device Monitor Screen Otasuke GP-EX! Chapter 3 Device Monitor Screen Chapter 3 Device Monitor Screen.
Copyright © Texas Education Agency, All rights reserved.1 Web Technologies Motion Graphics & Animation.
Galactic Mail Part 2. Winning and Losing Exploding Asteroids Including Scoring Adding Levels And more.
Game Maker Evil Clutches.
Tank Game Part 3 of 6. Secondary Weapons and Pick ups Pick ups will appear randomly in the battle area and can be collected by driving into them. Each.
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.
+ This step by step tutorial demonstrates drawing a keyboard illustration using rectangles, grids, move and transform effects.
 The terms LMB, MMB, RMB, and mouse wheel (MW).
1 CSC 221: Computer Programming I Fall 2009 Introduction to programming in Scratch  animation sprites  motion, control & sensing  costume changes 
Exploded CAD Assembly Models Also called… Pictorial Assembly Exploded View Exploded Assembly Exploded Pictorial Exploded Assembly Presentation.
GAME:IT Junior Paddle Ball Objectives: Review skills from Introduction Create a background Add simple object control (up and down) Add how to create a.
GAME:IT Paddle Ball Objectives: Review skills from Introduction Create a background Add simple object control (up and down) Add how to create a simple.
Train Body The next series of slides will guide you through the construction of the train body. Start a new drawing and save it as Train Body.
Tank Game Part 2 of 6. Firing Shells Coming up… Players Scores Large Explosions Small Explosions Damage Health Bars Parent Shell Destructible Walls Reappear.
CIS 205—Web Design & Development Flash Chapter 3 Working with Symbols and Interactivity.
GAME:IT Mario Creating Platform Games Level 4 with GML Game Maker Language (GML) allows users more flexibility in game design. GML is similar to how real.
Getting Started With Alice: The Basics. Step 1: Background Open up Alice, and choose a background for your Alice world. Your world is something you can.
Game Maker Tutorials Introduction Clickball IntroductionClickball Where is it? Shooting Where is it?Shooting.
Windows Tutorial 3 Personalizing Your Windows Environment
Game Maker Intro to Programming Game Maker Pop Quiz (Both Groups)
MS PowerPoint 2010 Week 2.
Tank Game Part 2 of 6.
Game Maker Intro to Programming Game Maker Pop Quiz (Both Groups)
Tank Game Int 10 Unit 3 – Game Maker.
Presentation transcript:

GAME:IT Helicopter Objectives: Review skills in making directional sprites Create objects that shoot and destroy for points Create random enemies on the scene as game challenges

The first step is to upload the Helicopter images from a strip. 1)Click on Resources > Create Sprite 2)Name it spr_helicopter 3)Click Edit Sprite

1)Click File > Create from Strip and select the helicopter.png file

1)In the Loading a strip image pop-up box, enter the following: Number of images: 3 Images per row: 3 Image width: 64 Image height: 64 Click OK This creates the 3 sub-images that will be used for the animation

1.Click the Show Preview check box to view the animation 1.Click the green check mark icon to save the changes

7. Right click on the sprite helicopter and find the duplicate function. Now we will program the animated helicopters that face the direction of the arrow keys located on the side number pad.

8. Rename the sprite spr_helicopter_right—the picture is not currently facing right that is the next set of directions.

11. Select the Rotate function 10. Click on the Transform menu 9. Click on the Edit Sprite button pulling up the Sprite Editor

12. Set the angle to 90 degrees (is the helicopter facing right?) 13. Make sure this “Applies to all images in the sprite” 14. Click OK

15. Click the checkmark to save 16. Click the OK button to save

Repeat the procedure to create your left (180 degrees) and down sprite (270 degrees). Make sure, at this point, to rename the original sprite spr_helicopter_up

Programming the NEW sprites to turn to correct direction 1) Create an obj_helicopter 2) Create all these events (we will use the number keypad to control the helicopter (include a event).

Select the Change Spite action from the Main 1 folder Starting with the 8 key (up): Select spr_helicopter_up as the image, enter 0-2 subimage, and speed 1 Note: Specifying subimage 0-2 creates the animation. The computer is continually displaying subimage 0, subimage 1, subimage 2 …. (helicopter blades in different locations)

The second action is to actually create the movement and direction with the Move Fixed action. Select the Up arrow key and a Speed of 8

Using that programming as an example, create a helicopter that flies and points in the 7 other directions (using the numeric keypad) And the 5 key will be used for..... firing You will also need to create 4 more sprites at 1, 3, 7, and 9 positions.

Part 2: Programming the ability to shoot (in all directions). Add a create event. Add action Set Variable. Call it “angle_of_bullet”. The sprite helicopter is facing up so the initial value should be 90 (degrees).

In Game Maker the program interprets degrees like the figure below.

In the case of number 1 on the keypad, the direction of the helicopter is facing 225 degrees, so the variable angle_of_bullet needs to be set at 225 degrees. Set all the keypads (EXCLUDING #5) to their proper degrees

Call up the #5 key—this is our trigger. The key action is called Create Moving. This will create an obj_bullet at the center of the sprite. It will be heading in the direction of “angle_of_bullet” at a speed of 10. Since we don’t have any type of delay, the bullets come out as a stream of bullets.

Many of the objects you will program will have bullets coming out, not at the center, but at the edges.

When the bullet comes from 0,0—it’s easy to program—it always stays at 0,0. But when you have 2 bullets, and the helicopter is facing up—one bullet comes from -10 (x),0 (y) and one bullet comes from +10 (x), 0 (y). -10,0+10,0 0,0

But when the helicopter is facing right—one bullet comes from 0 (x), -10 (y) and one bullet comes from 0 (x), +10 (y)—x and y are switched.

And what about the 45 degree shots... 0,0 ?,? y= 16*-sin((obj_helicopter.angle_of_bullet+270)*pi/180) x= 16*cos((obj_helicopter.angle_of_bullet+270)*pi/180) x= 16*cos((obj_helicopter.angle_of_bullet+90)*pi/180) y= 16*-sin((obj_helicopter.angle_of_bullet+90)*pi/180) ALL can be solved with a formula: Bullet 1 Bullet 2 That’s why it’s important to take math classes (trigonometry)

Finished Product

Part 3: Something to shoot at? How about random Hot Air Balloons?

Create a spr_balloon and then an obj_balloon. To program balloons appearing at random points along the top of the screen: 1) An object controller needs to be created (obj_controller_balloon). No sprite will be assigned to this object. 2) Add a Create EVENT and a Create Instance action to create a balloon somewhere off the top of the screen: x=random(room_width), y= -16

Set an alarm (Alarm 0) action to go off after 50 steps. Then add an Alarm 0 Event.

And when the Alarm goes off—what happens? 2) Reset the alarm for another, in this case, 100 steps. It will do 2 things: 1) Create a new instance of obj_balloon (same x,y coordinates as the previous Create instance).

How are the actual balloons programmed? 1) Create EVENT: Set Vertical Speed to 1.

2) Step EVENT (always checking): Check Variable to see if y is larger than room_height (the +32 allows the balloon to completely float off the screen before it does the next item) Jump to Position action (where it restarts at a random spot at the top of the room, using the same x and y coordinates).

3) The last EVENT—if the balloon Collides with a bullet—what do you want to happen? It could just disappear (destroy instance of self (balloon) and a 2 nd destroy instance (other—the bullet)). Why not obj_bullet —it will destroy ALL bullets on the screen.

But why just have the balloon disappear? Why not have it explode? Design your own explosion sprite with multiple images (see below for an example) Program the game so when the obj_balloon collides with obj_bullet it changes into the explosion sprite. We also need to program the obj_explosion so the animation ends and the instance is destroyed. Do this with an Other Event and select Animation End and then a Destroy Instance action. Save this game as Game8_yourname and play and test. If it plays correctly, move onto the assignment.

Your Assignment is to create a game in which you protect your island from any wayward hot air balloonists and thus save the President! The President of the United States has come to stay on your tropical island. Terrorists (hot air balloonists) want to destroy your island. Program balloons to be coming from at least 3 different sides of the screen (each balloon will be a different color combination). They will reset randomly if not destroyed. If a balloon touches the island, the island disintegrates into a massive explosion and the game ends. Helicopter must fly and fire in all 8 directions. Make sure to put the controller in the room!!!! Requirements: