Graphic Objects and Loading Them into TGF2/MMF2



Similar documents
Word 2010: Mail Merge to with Attachments

You must have at least Editor access to your own mail database to run archiving.

JAVS Scheduled Publishing. Installation/Configuration... 4 Manual Operation... 6 Automating Scheduled Publishing... 7 Windows XP... 7 Windows 7...

Using an Automatic Back Up for Outlook 2003 and Outlook 2007 Personal Folders

How To Create A Hyperlink In Publisher On Pc Or Macbookpress.Com (Windows) On Pc/Apple) On A Pc Or Apple Powerbook (Windows 7) On Macbook Pressbook (Apple) Or Macintosh (Windows 8

File Management Where did it go? Teachers College Summer Workshop

Making a Web Page with Microsoft Publisher 2003

MARS STUDENT IMAGING PROJECT

Create a Poster Using Publisher

Microsoft PowerPoint 2010 Computer Jeopardy Tutorial

Notepad++ The COMPSCI 101 Text Editor for Windows. What is a text editor? Install Python 3

AUSTRALIAN CUSTOMS AND BORDER PROTECTION SERVICE TYPE 3 CERTIFICATE 2014 INSTALLATION GUIDE

Flash MX Image Animation

Filtering with Microsoft Outlook

Using Microsoft Word. Working With Objects

PC Agent Quick Start. Open the Agent. Autonomy Connected Backup. Version 8.8. Revision 0

Tool Tip. SyAM Management Utilities and Non-Admin Domain Users

BioWin Network Installation

Appointment Scheduler

How to send meeting invitations using Office365 Calendar

How To Insert Hyperlinks In Powerpoint Powerpoint

Interfacing PC ChargePayment Server with Focus

Information Technology Solutions

Creating a Poster in Powerpoint

Most of your tasks in Windows XP will involve working with information

a) Network connection problems (check these for existing installations)

A-PDF to Flash Converter Convert PDF to Adobe Flash in minutes. User Documentation. About A-PDF to Flash Converter

INTRODUCTION to ESRI ARCGIS For Visualization, CPSC 178

PowerPoint 2013: Basic Skills

Overview of the Adobe Flash Professional CS6 workspace

What is Microsoft PowerPoint?

Instructions for Creating an Outlook Distribution List from an Excel File

Instructions for Configuring a SAS Metadata Server for Use with JMP Clinical

GoodReader User Guide. Version 1.0 GoodReader version

Managing Files. On a PC, after you find your file, right click it and selet Rename from the pop-up menu.

Microsoft PowerPoint 2010 Templates and Slide Masters (Level 3)

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

Using PowerPoint s Advanced Features. What Are Advanced Features? Basic Skills:

CREATING AN IMAGE FROM AUTOCAD CADD NOTE 16. MENU: AutoCAD, File, Plot COMMAND: plot ICON:

Office of History. Using Code ZH Document Management System

Viewing and Troubleshooting Perfmon Logs

Using Websense Data Endpoint Client Software

BioWin Network Installation

Windows XP Pro: Basics 1

Creating a Poster in PowerPoint A. Set Up Your Poster

IPRO Viewer. Installation

Action settings and interactivity

Creating a multiple choice test in HyperStudio

Watch Your Garden Grow

Smart Board Notebook Software A guide for new Smart Board users

What is a Mail Merge?

Send Video Recordings from the DVR to a FTP Server on your PC

Installation Guide for Crossroads Software s Traffic Collision Database

NetMeeting - User Guide

Lesson 2. From computer to USB

Schools Remote Access Server

As you look at an imac you will notice that there are no buttons on the front of the machine as shown in figure 1.

Common Internet File Sharing (CIFS) How-To

Automating client deployment

2. More Use of the Mouse in Windows 7

Setting up Auto Import/Export for Version 7

Character Creation You can customize a character s look using Mixamo Fuse:

This help document will demonstrate the usage of the website.

Using Windows Task Scheduler instead of the Backup Express Scheduler

How To Restore Your Data On A Backup By Mozy (Windows) On A Pc Or Macbook Or Macintosh (Windows 2) On Your Computer Or Mac) On An Pc Or Ipad (Windows 3) On Pc Or Pc Or Micro

Scribe Online Integration Services (IS) Tutorial

Moving Rockwell Software Activation Keys to the VersaView 200R Industrial Computer

About (EAS) Archived Service

Computer Basics: Tackling the mouse, keyboard, and using Windows

Using Your Virtual Desktop

Creating Hyperlinks & Buttons InDesign CS6

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

Help File. Version February, MetaDigger for PC

SA-9600 Surface Area Software Manual

Making Visio Diagrams Come Alive with Data

Blackboard Online Classes at UAA

Writer Guide. Chapter 15 Using Forms in Writer

Reading mail via the Web on Mail.uh.edu

Make your own Temple Run game

Create a New Database in Access 2010

Content Management System User Guide

Go Kiwi Internet Content Management System Version 5.0 (K5) TRAINING MANUAL

How to Attach Files in Blackboard Learn , Messages, Discussions, and Assignments

DRUPAL WEB EDITING TRAINING

Creating Fill-able Forms using Acrobat 8.0: Part 1

Version 4.1 USER S MANUAL Technical Support (800)

Basic File Management & Navigation

Office 365 Training. Contents

Outlook Operating Instructions. Internal Desktop Access

SPI Backup via Remote Terminal

Introduction. Inserting Hyperlinks. PowerPoint 2010 Hyperlinks and Action Buttons. About Hyperlinks. Page 1

Easy Grade Pro Progress Reports on the Web

Chapter 12 Creating Web Pages

Scan to PC Desktop: Image Retriever 5.2 for Xerox WorkCentre C2424

Getting Started using the SQuirreL SQL Client

Step-by-step installation guide for monitoring untrusted servers using Operations Manager ( Part 3 of 3)

Installing LearningBay Enterprise Part 2

Ohio University Computer Services Center August, 2002 Crystal Reports Introduction Quick Reference Guide

Outlook Web Access. PRECEDED by v\

Transcription:

Graphic Objects and Loading Them into TGF2/MMF2 There are a couple of ways of ensuring graphics appear in a game. Types of objects you can use: Active Object: Consider the active object any image that might move, interact with other objects, or be animated. The active object in game terms would be called a sprite. All graphics are stored internally to the TGF2/MMF2 application. Active Picture : An active picture is any picture that you may want to resize, rotate or generally program to move. The picture that the Active Picture object links to is stored externally from the TGF2/MMF2 program. Backdrop: The backdrop object is a simple object that is displayed at the back of the frame and is used to provide an image as a game background. You cannot program actions against the backdrop object and is only used for scrolling an image or as a scene image. Backdrop objects are stored internally to the TGF2/MMF2 program. Picture: If you wish to just display a simple picture and not do any resizing or rotating in realtime, then the picture object is a simple way to display images. All image files are stored externally to TGF2/MMF2. Quick Backdrop: If you wish to create a gradient or a pattern of another image then the Quick Backdrop is available. The Quick Backdrop was very popular for creating gradient sky images. All images are internal to TGF2/MMF2. Using the Active Object: This object allows you to import a graphic file into TGF2/MMF2 and this will be stored internally to the game file/exe. This does mean that the executable file can get quite large. Place the Active Object on screen using Insert New Object. Select the running character object. Click anywhere on the frame to place the image. You will now see the green diamond shape as shown in Figure 1.1. Figure 1.1 The Active Object. Double left click on this object to access the Picture Editor.

Click on the import button as shown in Figure 1.2, which is the second button in: Figure 1.2 The Import Option within the Picture Editor Locate your image file, using the browse dialog as shown in Figure 1.3. Figure 1.3 The browse dialog.

Select the image that you want to import and then click on Open. This will place it in the Import Dialog, click on OK to save it to the Picture Editor, then click on OK again to save it to the Frame. Note: If you require more information about the import options please consult the inbuilt help documentation. Using the Active Picture: Using the Active Picture means you can place an extenal picture into the program, TGF2/MMF2 then links to this picture. This keeps the size of the MFA/executable smaller, but you do need to follow some basic rules for linking to these graphics. You should ALWAYS place all of the graphics you intend to use within your game in the same folder as the MFA or in a folder below the MFA file. You should not have the folders very deep for example: CORRECT : Mfa file is stored in the G:\Games folder, the pictures are in the G:\Games\Images folder. INCORRECT: Mfa file is stored in the G:\Games folder, the pictures are stored in U:\Users\John folder. You must take into consideration if other users are going to access the MFA file that the folder that the MFA and pictures are stored in are accessible by all. For example if the MFA is stored in a shared drive and the images in a personal folder it will not work, this is why you should always keep the images local to the MFA file. If you distribute the MFA file you should always zip the file and any images below it with it, otherwise the images will not show up within the program as shown in Figure 1.4. If you see a gray box with a cross in it, then you have either forgotten to move the images with the MFA file or the graphic location does not exist on the machine that is accessing the MFA file. Figure 1.4 The Active Picture object with no file loaded.

To insert select the Insert New Object and choose the Active Picture object. Once you have clicked on the frame a dialog box will appear as shown in Figure 1.5. Figure 1.5 The open image dialog box. This dialog box will remember the path of the image you browse for and locate. So if the image is in the folder: G:\School\Games\Images\Game1\Project a\menu.gif It will always remember that as a path. If you build your executable and give it to the students to take home, they will not have access to that folder on their home PC s and the image will not be displayed. If the folder will always appear (e.g the MFA and/or the exe will always have access to the image location) you can browse for the image and click on Open. If NOT click on the Cancel button. By clicking on the Cancel button you will create a image with a cross through it as shown in Figure 1.6.

Figure 1.6 The object with no picture loaded. Using Object Properties to Load a Graphic File As long as your MFA application file is in the same folder as the graphics you can then, double click on the X to access the object properties, then can type in the name of the file as shown in Figure 1.7. Figure 1.7 Loading a picture via the properties. This will then display the image in the frame as shown in Figure 1.8.

Figure 1.8 The image displayed on screen after entering the correct filename. You will need to ensure when you distribute your application that you always keep the image file in the same location as the executable or MFA file. Using the Event Editor to Load an Image You can also load your images using the Event Editor, this allows you to specify a folder that is relative to the MFA/exe file. This means as long as you keep the same folder structure the images will always appear. The benefit of this is that you don t have to store the images in the same folder as the MFA/Exe you can create numerous folders underneath. Go into the Event Editor for the frame that you wish to program the Active Picture for: Create a condition Start of Frame. Move across to the Active Picture object, right click on the Action box and select New Picture. A dialog box will appear as shown in Figure 1.9.

Figure 1.9 The open dialog box to search for an image. Rather than browsing for a file, click on the Expression button, this allows you to code various options for selecting a particular picture and location. Clicking on the Expression button will display the Expression Evaluator as shown in Figure 1.10. Figure 1.10 the Expression Evaluator You can now use the various options to tell TGF2/MMF2 to pick a specific image. This is useful for not only specifying different pictures but for different locations. Click on the Retrieve data from an object button, as we need to get the location of the MFA (exe) file. Under the Special object and then Filenames (as shown in Figure 1.11) you have a number of different options for checking the location of the file, the drive its on etc. Using the application Directory option will get the current directory path to the file. It

doesn t matter in the future where you move the file, it will always check the location of the MFA/exe and report it back to the program. Figure 1.11 The file and drive options available via the Special Object. In the Expression Evaluator you will now have the command Appdir$ If your MFA file was stored in the D:\Games folder, it would return this information to the action box. At the moment this would not work as we need to also specify the name of the file. In this example the graphics file is in the same location as the MFA file. To do this we need to using a + sign to add the following, then the name of the graphic file in quotes, to leave you with the following information as shown in Figure 1.12. Figure 1.12 The new contents of the Expression Evaluator.

This will now retrieve the path to the MFA file and then read in the image, there by loading the graphic onto the screen. If the file was in a folder below this, in a folder called \Graphics\ you would need to change it to read: Appdir$+ Graphics\IMG_3065.JPG Note: If you use this method, you would not enter the graphics filename in the object properties. Backdrop To insert a Backdrop object you can use the Insert New Object, Backdrop. You can see the icon in Figure 1.13. Figure 1.13 The Backdrop Icon. You load any images you wish to use directly into the Picture Editor for the Backdrop. The backdrop object does not appear in the Event Editor as an object that can have actions applied to it. Picture Object The Picture object can be applied to the screen in the same way as the Active Picture object, via the object properties, selecting it via the selector or the Event Editor. The Picture object can be inserted by Insert New Object, Picture. The icon can be seen in Figure 1.14. Figure 1.14 The Picture Icon. Quick Backdrop The Quick Backdrop is used to create a quick colorful background. Click on Insert New object select the Quick Backdrop icon as shown in Figure 1.15 and then click on the frame. Figure 1.15 The Quick Backdrop Icon. You will then be able to change its appearance via the object properties as shown in Figure 1.16.

Figure 1.16 The Quick Backdrop properties. The most important configuration options are its shape and its fill type. If you want to create a simple backgroup gradient, select fill type as shown in Figure 1.17: Figure 1.17 Various configuration options for the Quick Backdrop. Select Gradient, and then select two colors to move between. Once you have selected the two colors and resized your Quick Backdrop you should have something that appears like Figure 1.18.

Figure 1.18 The Quick Backdrop applied to the Frame. You will need to select Vertical Gradient if you want it to run top to bottom, otherwise the gradient will run left to right.