Refining our Animations

Slides:



Advertisements
Similar presentations
Getting Started With Alice: The Basics By Jenna Hayes under the direction of Professor Susan Rodger Duke University July
Advertisements

Objects in Alice: Positioning and Moving Them By Jenna Hayes under the direction of Professor Susan Rodger Duke University July
Princess & Dragon – Version 2 By Michael Hoyle under the direction of Professor Susan Rodger Duke University July 2012 Part 2: Using Methods.
Getting Started With Alice By Ruthie Tucker under the direction of Prof. Susan Rodger Duke University, July
Lights Camera Action! Part 3: BDE Events By Deborah Nelson under the direction of Professor Susan Rodger Duke University July 2008.
Getting Started With Alice By Ruthie Tucker under the direction of Prof. Susan Rodger Duke University, July
Getting started with Alice Adapted from presentations by Jenna Hayes, Duke University Donna Gavin, UWP Computer Science and Software Engineering.
Alice 2.0 Introductory Concepts and Techniques Project 1 Exploring Alice and Object-Oriented Programming.
Poses Tutorial Alex Boldt Under the direction of Professor Susan Rodger Duke University July 2015.
CS329e – Elements of Visual Programming Implementing Programs Mike Scott (Slides 2-2)
Teaching a character to walk in more than one world: Parameters and Inheritance. By Lana Dyck under the direction of Professor Susan Rodger Duke University.
Xin Nov 15, Introduction to Alice Alice A very visible programming language Programming by dragging objects Interface World window The virtual world.
Now that the kangaroo and the turtle have raced, let's make a method for the kangaroo to hop back to the turtle and challenge him to a race again. Click.
Skater World: Part Two By Deborah Nelson Duke University Under the direction of Professor Susan Rodger June 1,
Bunny Eat Broccoli Repetition – Simple loops and Conditional loops Susan Rodger Duke University July 2011.
The Essentials of Alice (Bunny) By Jenna Hayes under the direction of Professor Susan Rodger Duke University July 2008.
Illuminating Computer Science CCIT 4-6Sep
The Essentials of Alice Mrs. Jayne Slease SBMS CTE Computer Science and Animation Credit to Duke Students under the direction of Professor Susan Rodger.
Speed Tree Let’s Make a Forest Copyright © 2015 – Curt Hill.
Headshots in Alice Duke University Professor Susan H. Rodger Gaetjens Lezin July 2008.
The Essentials of Alice By Jenna Hayes under the direction of Professor Susan Rodger Duke University May 2009.
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.
Jonathon Kuo Under the Direction of Dr. Susan Rodger
Programming in Alice Chapter 2.
The Essentials of Alice (Bunny)
Getting Started With Alice: The Basics
Skater World: Part Four
Professor Susan Rodger
Setting Up the Initial Scene
An Introduction to Alice (Short Version)
Functions Sec 51 Web Design.
Learn about functions in Alice
Professor Susan Rodger
Getting started in Alice
Putting Objects in Motion
Changing Camera Views! Part 1: Set Point of View to By Bella Onwumbiko
Bunny Eat Broccoli Repetition – Simple loops and Conditional loops
Functions Sec 8-11 Web Design.
Introduction to Events
Learning Java with Alice 3.0 Game Design Kathy Bierscheid
Skater World: Part Three
The Essentials of Alice
Organizing common actions
Classes, Objects, and World-level Methods
Doing things more than once
Concepts From Alice Switching to Java Copyright © Curt Hill.
Methods Tutorial: Part Two
Objects in Alice: Positioning and Moving Them
Making Objects Move in Unison: Using Lists
Shark vs. TRex: Understanding “AsSeenBy” In Alice By Jenna Hayes
A few tricks to take you beyond the basics of Microsoft Office 2007
A few tricks to take you beyond the basics of Microsoft Office
An Introduction to Alice
Princess & Dragon Part 3: A Knight Comes Riding In—Cameras & Events
Introduction to Object-Oriented Programming in Alice
TOPICS: HOW TO BUILD A TARGET TO SHOOT.
Getting Started With Alice
Professor Susan Rodger
Using Alice This is an introduction to Alice..
Headshots in Alice Duke University Professor Susan H. Rodger
Getting Started With Alice: The Basics
Alice and Daisies: Positioning and Moving Objects in Alice
Using Placeholders to Simplify your Methods: Learning Methods, Part 2
Lesson One: Objects in Alice: Positioning and Moving Them
Professor Susan Rodger
Making Objects Move in Unison: Using Lists
Creating a Simple Game in Scratch
Shark vs. TRex: Understanding “AsSeenBy” In Alice By Jenna Hayes
Presentation transcript:

Refining our Animations Parameters and Editing Copyright © 2005-2009 Curt Hill

Standard Methods We have already seen these Almost every object have the following: move, turn, roll, resize say, think, playSound move to, move toward, move awayfrom orient to, turn to face, point at, set pose move at speed, turn at speed These give us ability to make things more interesting Copyright © 2005-2009 Curt Hill

Say Method Each built in method has its own set of parameters Say will give a word balloon with some contents Next four screens calls Say method for the stingray Copyright © 2005-2009 Curt Hill

Copyright © 2005-2009 Curt Hill

Copyright © 2005-2009 Curt Hill

Copyright © 2005-2009 Curt Hill

Copyright © 2005-2009 Curt Hill

User-defined methods On the last slide, the stingray had a method that some do not: wag tail This is a user defined method Notice the edit button next to it Comes standard with this object but not all Lilfish also has a waggle method We will be see how to define these ourselves in a subsequent presentation Copyright © 2005-2009 Curt Hill

Parameters Method calls sometimes need parameters Move requires two: direction and distance There are only six directions There are infinite distances, but only the common ones are suggested The next screen shows a drag in process Copyright © 2005-2009 Curt Hill

Copyright © 2005-2009 Curt Hill

Numbers The most common numbers are on the previous list Other allows any number to be entered with a calculator interface You may click keys or just type in the number with decimal point Copyright © 2005-2009 Curt Hill

Copyright © 2005-2009 Curt Hill

More… Many methods have a more… button Some of the others include These contain optional parameters Some of the others include Style As seen by Duration Copyright © 2005-2009 Curt Hill

Copyright © 2005-2009 Curt Hill

Editing Once a statement is in place it may be changed The left hand portion of the line has a slightly different texture Right clicking on this gives several options: Make copy – duplicate Delete – remove Disable – leave there but do not execute You may also drag it with this handle Copyright © 2005-2009 Curt Hill

Copyright © 2005-2009 Curt Hill

Composite Objects When an object is drug into use Alice tells you how many moving parts there are Each of these is an object They may move somewhat independently Generally a move is not used This would cause the part to move away from main actor These have a + in object tree Copyright © 2005-2009 Curt Hill

Copyright © 2005-2009 Curt Hill

Heirarchical Object The plus may be clicked on to show the components Some of these may be objects containing objects Bigfish contains: Head, tailstem These contain other objects Topfin, rightfin, leftfin Single objects Copyright © 2005-2009 Curt Hill

Copyright © 2005-2009 Curt Hill

Bigfish’s jaw It has its own methods Turning it forward would open the mouth Turning it backward closes In both cases use a small rotation Most other actions could look painful Copyright © 2005-2009 Curt Hill

Do In Order Many of the things we have done happen simultaneously A move and turn together look OK Others do not Some actions cancel each other Opening and closing the jaw Turning left and right A Do in order helps this Setting duration may also be needed Copyright © 2005-2009 Curt Hill

Do in Order Another container This forces actions to be performed sequentially Use Do Together to do things simultaneously and Do in Order to do things sequentially Any of the containers may be in another A Do in Order could be inside a Do Together Copyright © 2005-2009 Curt Hill

Moving Pieces Problem: When we move an actor it looks like a statue being moved Quite un-natural The solution: cause sub-objects to move as well Lets make a tail flap Copyright © 2005-2009 Curt Hill

Open Sub-Object Copyright © 2005-2009 Curt Hill

Add Do In Order Copyright © 2005-2009 Curt Hill

Turns Copyright © 2005-2009 Curt Hill

Still a Problem The tail wags after the fish stops The solution is to make sure that the durations match The duration is part of the more… part of the method call By default most actions last one second We need the tail wag to in total take one second Copyright © 2005-2009 Curt Hill

Duration Copyright © 2005-2009 Curt Hill

Now Set Copyright © 2005-2009 Curt Hill

Typical Movie A typical unit in a movie may be ½ to 2 seconds In this unit all things happen simultaneously A movie then becomes a sequence of Do Togethers Each one propels things forward some number of seconds Copyright © 2005-2009 Curt Hill

Exercise Make your scene more interesting Make parts of the actors move in a way that is complementary Put in a say or think Copyright © 2005-2009 Curt Hill