CIS 487 - Game Design I Sprite Sheets Blake Farrugia 10/10/2011.

Slides:



Advertisements
Similar presentations
Tutorial 7 Planning and Creating a Flash Web Site.
Advertisements

Pivot Animation Tutorial. Tutorial links: Startup Moving your figure Adding new frames Playback Adding a figure Edit figure Load new figures Creating.
Create slices and hotspots Create links in Web pages Create rollovers from slices Create basic animation Add tweening symbol instances to create animation.
CIS Game Design I Chapter 6 and 7 Blake Farrugia 10/24/2011.
Frame(GIF) and Vector Animation. Two Applications for Creating Animations 1.Photoshop – GIF Animation 2.Flash – Vector Animation.
1 Flash and Animation Presented by : Behzad Sajed Khosrowshahi.
© 2011 Delmar, Cengage Learning Chapter 8 Building Complex Animations.
Chapter 17 Putting It All Together. Viewing the Preloader To view the preloader, 1.CTRL-Enter to test the movie. 2.View > Simulate Download.
1 © Netskills Quality Internet Training, University of Newcastle Flash 8: Animation Techniques © Netskills, Quality Internet Training, University of Newcastle.
Chapter 9 Introduction to ActionScript 3.0. Chapter 9 Lessons 1.Understand ActionScript Work with instances of movie clip symbols 3.Use code snippets.
11 Games and Content Session 4.1. Session Overview  Show how games are made up of program code and content  Find out about the content management system.
Chapter 15 Video. Importing Video Into Flash Once you import video into Flash MX 2004, you can control it using behaviors and very basic ActionScript,
Introduction to Flash FYS100 Creative Discovery in Digital Art Forms Spring 2007 Burg.
Edge Animate CreateJS is a suite of modular libraries and tools which work together to enable rich interactive content on open web technologies.
Foundation Flash CS Introduction Welcome to Flash CS3 Professional. You have seen a lot of the great stuff Flash can do and it is now time for.
Exercise : Animated Navigation Structure in Flash 1.Develop Answers to “What did you learn in ITI program?” “What do you have to offer?” “What are your.
Flash MX II. Flash MX – Tweened Animation There are two methods for creating an animation sequence in Flash –Frame-by-frame animation –Tweened animation.
Adobe Flash Professional CS5 Provides a comprehensive authoring environment for creating digital animation and interactive Web sites. Used to create engaging.
Advanced Level Course. Site Extras Site Extras consist of four categories: Stationeries Site Trash Designs Components.
Chapter 11 Adding Sound and Video. Chapter 11 Lessons 1.Work with sound 2.Specify synchronization options 3.Modify sounds 4.Use ActionScript with sound.
© 2011 Delmar, Cengage Learning Chapter 9 Introduction to ActionScript 3.0.
Macromedia Flash CS4. What is Flash CS4? –Animation and interactive authoring program –Tools for complex animation, as well as excellent drawing tools.
Flash Macromedia Flash Introduction. Bitmap vs. Vector based  Bitmap –Bitmaps are made up of single pixels  Vector based –Vector graphics are made up.
Adobe Flash CS5.5. What is Adobe Flash? formerly Macromedia Flash Is software is a powerful authoring environment for creating animation and multimedia.
CT1514.  What is Motion Guide Layer?  Controls the movement of objects in a Motion tween animation  How to create a Motion Guide Layer?  Click on.
Chapter 2 Adding Animation to a Presentation. Applying Animation Animation is a great way to add life to InDesign documents by making objects: – move.
® Copyright 2010 Adobe Systems Incorporated. All rights reserved. ® ® 1 INTRODUCTION TO ADOBE FLASH PROFESSIONAL CS5.
UNDERSTANDING ADOBE FLASH. The Flash Interface  The flash interface provides you with:  A menu bar  Panels  A work area: stage.
Media in PowerPoint Learning Goal: Today you are going to explore how music and video can be added to a presentation.
Chapter 10 Fireworks: Part II The Web Warrior Guide to Web Design Technologies.
Adobe Flash CS3 Revealed Chapter 1 - GETTING STARTED WITH FLASH.
Tutorial 8 Programming with ActionScript 3.0. XP Objectives Review the basics of ActionScript programming Compare ActionScript 2.0 and ActionScript 3.0.
CSC 361/661 Digital Media Spring 2010 Professor Burg.
Flash Adobe Flash Introduction Kyungeun Park. Bitmap vs. Vector based  Bitmap –Bitmaps are made up of single pixels  Vector based –Vector graphics are.
Tutorial 7 Planning and Creating a Flash Web Site.
Adobe Flash CS5 Introduction. What is Flash? Flash is a multimedia platform used to add animation, video, and interactivity to Web sites. It is often.
Creating Buttons – Lesson 71 Creating Buttons Lesson 7.
More Tips on Flash CSC361/661 Digital Media Spring 2007 Burg.
Flash Flash. It’s components and usage. New generation of web- design  Definition Multimedia technology developed by Macromedia to allow much interactivity.
CSC 361/661 Digital Media Spring 2010 Professor Burg.
Introduction to Flash Animation CS 318. Topics Introduction to Flash and animation The Flash development environment Creating Flash animations  Layers.
Flash CS 5 Interface BY NSCHEWCZYK | ©2012. MENU BAR A bar at the top of the window. It lists menu options including: File, Edit, View, Insert, Modify,
Copyright © 2003 Pearson Education, Inc. Chapter 6 – Slide 1 by Michael Kay The Web Wizard’s Guide to Flash.
Game Maker – Getting Started What is Game Maker?.
XP Tutorial 8 Adding Interactivity with ActionScript.
Introduction to Flash CSC361/661 Digital Media Spring 2007 Burg.
Quick Flash Tips Learn how to use flash the easier way!
© 2011 Delmar, Cengage Learning Chapter 10 Using ActionScript to Enhance User Experience.
XP Tutorial 7 Creating a Flash Web Site. XP New Perspectives on Macromedia Flash 82 Objectives Plan and create a Flash Web site Create a Flash template.
Tutorial 3 Creating Animations. XP Objectives Learn the different elements of animation Create frames and layers Organize frames and layers using the.
Chapter2 Create animation. Objectives Import image Use the blank keyframe Add sound Publish the movie as an SWF file Use a motion tween animation.
Video in Macromedia Flash (Optional) – Lesson 121 Video in Macromedia Flash (Optional) Lesson 12.
CIS 205—Web Design & Development Flash Chapter 3 Appendix on Using Buttons.
Open a new Flash File Action Script 2.0. Create a button like you did last lesson and name it Click to Play.
© 2011 Delmar, Cengage Learning Chapter 11 Adding Sound and Video.
Debugging tools in Flash CIS 126. Debugging Flash provides several tools for testing ActionScript in your SWF files. –The Debugger, lets you find errors.
Configure your animation in Xtplot, then check “Save animation to image files” and click Run. Save images here Choose PNG, JPEG, TIFF, or Bitmap.
XP Tutorial 3 Creating Animations. XP New Perspectives on Macromedia Flash MX Elements of Animation Layers are used to organize the content of.
Dreamweaver MX. 2 Timeline Overview (p. 480) n Animations can be achieved with DHTML (__________ HTML) using JavaScript code and _____ or later browsers.
Adobe Flash Professional CS5 – Illustrated Unit A: Getting Started with Adobe Flash Professional.
 Movieclip symbols are reusable pieces of flash animation  consisting usually of one or more graphic/button symbols  thus they are flash movies within.
Game Maker Tutorials Introduction Clickball IntroductionClickball Where is it? Shooting Where is it?Shooting.
Packages that we use Within ICT we primarily use Dreamweaver CS3 and Flash CS3 This is embedded in an Adobe Design Premium CS3 package (Go to Start >
Tutorial 3 Creating Animations.
Creating a Flash Web Site
How to Add pictures to Canvas discussion
Computer presentation
CT1514 Flash-2.
Animate Workspace. Objective % Utilize appropriate tools and methods to produce digital animation.
Exercise : Animated Navigation Structure in Animate (= Flash)
Presentation transcript:

CIS Game Design I Sprite Sheets Blake Farrugia 10/10/2011

Animation You may be wondering how to animate objects in your flash games. A basic, cheap (memory-wise) way to render is Sprite Sheets. Rendering is the same for both. Two main ways of getting resources: – Embed actual picture file – Embed SWF file and using MovieClip classes

Art Assets Where does the art come from? You can create it yourself with a program like Gimp You can find royalty free sources on the internet html

Basics - Sprite Sheet It is an image (preferably X x Y where X and Y are divisible by 2) that holds sequences. Each sequence is made of separate images that play an animation. Each individual image of a sequence is called a sprite and represents frames of the animation. A sprite is usually a pixilated, highly stylized image used in games. Not always, though.

Sprite Vs. MovieClip A sprite is a small picture that is part of a sequence of images that make up an animation. Low memory usage, unable to be “tweened” and has no timeline. A flash Movieclip has a timeline and can be animated by tweening. Display is usually less hassle, but multiple movieclips take a lot memory to produce.

Sprite Sheet example Walk Cycle Kid Chameleon - Sega Genesis Projectile Death Cycle Attack Cycle

Importing Sprite Sheet Tutorial If using Flash CS2 or greater w/ FlashDevelop: – Create a new Flex AS3 file. Click File->Import- >Import to Library. – ; – Choose image to import. – Right click image in Library pane on right side. Choose Properties and check Export to Actionscript ON.

Flash SWF Sprite Sheet Name your symbol. Two more items: – Naming class to import as – Deriving base class which it inherits from If you are importing an image, your base case will be flash.display.BitmapData, else MovieClip.

Flash SWF Sprite Sheet Go to File->Export->Export Movie… This will save a.

Flash SWF Sprite Sheet SWF file that you may then add to your FlashDevelop project

Tutorial on Using Flash There are series of movies that make use of this technique to create in game animations in flash tutorials/projects-game-development/366-2.html

FlashDevelop Sprite Sheet You can certainly use the above method for creating.SWF MovieClip classes for use in your FlashDevelop projects If you don’t want to, there is a more manual way of importing pictures.

Importing Graphics Add your sprite sheet image to your project’s asset folder. Right click and embed it in your animation class.

Importing Graphics Set as a Class. To use this as the Bitmap it is, set to an actual Bitmap variable.

Basic Animation Code This is the strip we will animate. Each tile is 46x46. The image dimensions are 276x46. Note: Normal sprite sizes usually divide better by 32, but this is just a test. There are 6 tiles and our basic code will cycle through all of them.

Basic Animation Code Here’s some code adapted from 8 Bit Rocket.

Basic Animation Code What’s happening? – After each frame, event runs animLoop() – A basic canvas, 200x200, is being created – A rectangle to display part of a bitmap is made – tileCount and tileWait set up basic timer actions for pausing tile animations – tileSheet is loaded and display points are created – tilesPerRow programmatically found – Canvas is added as child for rendering

animLoop() Each frame, the canvas is redrawn with sprite.

Helpful Links 8 Bit Rocket – Sprite Sheet Animation Basics – The-basics-of-tile-sheet-animation-or-blitting/ The-basics-of-tile-sheet-animation-or-blitting/ 8 Bit Rocket – Updated Sprite Sheet Example – how-to-blit-an-animation-from-a-tile-sheet- embedded-at-compile-time/ how-to-blit-an-animation-from-a-tile-sheet- embedded-at-compile-time/ Ben Silvis – Sprite Sheet Class Tutorial –