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



Similar documents
1.0-Scratch Interface 1.1. Valuable Information

MAKE AN A-MAZE-ING GAME

Silent Walk FPS Creator 2 User s Manual

Creating Animated Apps

How to Build a Simple Pac-Man Game

Scratch Primary Lesson 4

REFERENCE GUIDE 1. INTRODUCTION

1 ImageBrowser Software Guide

Course Project Lab 3 - Creating a Logo (Illustrator)

Tutorial: Creating Platform Games

product. Please read this instruction before setup your VenomXTM.

Fireworks 3 Animation and Rollovers

Make your own Temple Run game

State of Indiana Content Management System. Training Manual Version 2.0. Developed by

Triggers & Actions 10

Use fireworks and Bonfire night as a stimulus for programming

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

Introduction to ProForm Rapid elearning Studio. What is ProForm? The ProForm Course Authoring Tool allows you to quickly create

Create a Poster Using Publisher

WIX: Building a Website with a Template. Choosing a Template First you will need to choose a template from the Create section of the Wix website.

How to create buttons and navigation bars

Sage Accountants Business Cloud EasyEditor Quick Start Guide

Graphic Objects and Loading Them into TGF2/MMF2

The following was taken directly from the ARD (Apple Remote Desktop) operator s manual:

How To Write A Cq5 Authoring Manual On An Ubuntu Cq (Windows) (Windows 5) (Mac) (Apple) (Amd) (Powerbook) (Html) (Web) (Font

Creating Hyperlinks & Buttons InDesign CS6

Basic Pivot Tables. To begin your pivot table, choose Data, Pivot Table and Pivot Chart Report. 1 of 18

Introduction to Macromedia Dreamweaver MX

Maximizing the Use of Slide Masters to Make Global Changes in PowerPoint

App Inventor Tutorial 4 Cat & Mouse Game

LEARNING RESOURCE CENTRE GUIDE TO OFFICE 365

Joomla Article Advanced Topics: Table Layouts

RADFORD UNIVERSITY. Radford.edu. Content Administrator s Guide

Verizon Cloud Desktop Application Help Guide Version

Global Image Management System For epad-vision. User Manual Version 1.10

Microsoft Picture Manager. Picture Manager

Introducing our new Editor: Creator

Create a Web Page with Dreamweaver

I. Create a New Project

PowerPoint 2007 Basics Website:

MICROSOFT OUTLOOK 2010 WORK WITH CONTACTS

HOUR 9. Formatting Worksheets to Look Great

Adding Animation With Cinema 4D XL

Advanced Outlook Tutorials

Adobe Dreamweaver CC 14 Tutorial

Submitting a Claim in New MIPS Sponsor of Day Care Homes (more detailed instructions found in back of document)

Getting Started in Tinkercad

Decision Support AITS University Administration. Web Intelligence Rich Client 4.1 User Guide

User Guide for TASKE Desktop

Making a Website with Hoolahoop

GAMELOOPER DESKTOP APP

Leica 3D Disto Application Veranda / Conservatory

To change title of module, click on settings

Frog VLE Update. Latest Features and Enhancements. September 2014

Access your directories (home directory and shared directories) outside Tilburg University

Chapter 14: Links. Types of Links. 1 Chapter 14: Links

Help. Contents Back >>

Login: Quick Guide for dotcms & Accessibility November 2014 Training:

Creating A Drip Campaign

Basic Microsoft Excel 2007

emarketing Manual- Creating a New

A) What Web Browser do I need? B) Why I cannot view the most updated content? C) What can we find on the school website? Index Page Layout:

DROOMS DATA ROOM USER GUIDE.

PowerPoint 2013: Basic Skills

HOW TO VIEW AND EDIT PICTURES

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

Blender Notes. Introduction to Digital Modelling and Animation in Design Blender Tutorial - week 9 The Game Engine

KFUPM. Web Content Management System powered by SharePoint

Create a new file/canvas to work with by going to the file menu and selecting new.

HOW TO USE THIS GUIDE

Training Manual Version 1.0

Infinity Touch Control Field Software Updates Version 10 rev

SMART Notebook 10 User s Guide. Linux Operating Systems

MANUAL FOR WCPA PROTECTED AREA LITERATURE DATABASE IN MICROSFT ACCESS

Communication Manager Template Library

Working with SQL Server Integration Services

Dreamweaver and Fireworks MX Integration Brian Hogan

CREATE A 3D MOVIE IN DIRECTOR

GameSalad Creator. (Version ) Written by Jack Reed Layout by Anne Austin

Microsoft Office PowerPoint 2013

Creating Web Pages With Dreamweaver MX 2004

Flash MX Image Animation

Google Docs Basics Website:

Designing Games with Game Maker

Macromedia Dreamweaver Tutorial

Lesson 7 - Creating Animation II

13-1. This chapter explains how to use different objects.

PowerPoint. Basics. Project

How to create pop-up menus

Credit Card Processing Installation Instructions

SENDING S & MESSAGES TO GROUPS

SoMac 2.2 User Manual (Access Control)

To create a dynamic report that will show a history of IRA contributions organized by account -

Transcription:

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 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

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

4) 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

4) 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

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

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

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

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

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 <no key> event).

Using the 8 key (up) as an example, to program: Select the Change Spite action from the Main 1 folder 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.

Now, create a helicopter that flies and points in 8 directions (using the numeric keypad) You will also need to add 4 more sprites at 1, 3, 7, and 9 positions. 7 8 9 4 6 1 2 3 And the 5 key will be used for..... firing

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. 135 90 45 180 0 225 315 270

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). 0,0-10,0 +10,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... ALL can be solved with a formula: x= 16*cos((obj_helicopter.angle_of_bullet+270)*pi/180) Bullet 1 y= 16*-sin((obj_helicopter.angle_of_bullet+270)*pi/180) x= 16*cos((obj_helicopter.angle_of_bullet+90)*pi/180) Bullet 2 y= 16*-sin((obj_helicopter.angle_of_bullet+90)*pi/180)?,? 0,0?,? 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?

Load the balloon sprite from the file. Make it into 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) 2) Use a Create EVENT 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. This will activate Event #2 the Alarm 0.

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

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 the top of the room).

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.

What is this Change Instance? If you want the balloon to be destroyed in a massive explosion you create an explosion sprite strip create explosion object Animate it (EVENT) and then destroy it.

Moving Rooms?

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