potions. The troll doubles in size.

Similar documents
Duration 30 minutes Notes This tutorial was built using Alice

Methods (part 2) Alice In Action, Ch 2

Chapter 0. Getting Started. Objectives

Alice: A Free 3D Animation World for Teaching Programming

Kids College Computer Game Programming Exploring Alice 3.X and Object-Oriented Programming

Alice 3.0. Copyright 2015 University of North Texas Computer Science & Engineering

Getting Started with Java Using Alice. 1 Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Introduction to Events

Methods (part b) Alice In Ac5on, Ch 2

Introduction to Alice. Computer Science for High School (CS4HS)

Getting Started with Java Using Alice. 1 Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Gaddis: Starting Out with Alice Test Bank Chapter Two 1 Chapter Two

Appendix A Reference: Built-in Methods

Repetition everywhere comparing while in a method and as an event. Comparison

The Alice Scene Editor

Princess & Dragon Part 1: Objects in an Alice World

Changing Camera Views! Part 2: Simple Scene Change & Lighting Fixes

Alice. Creating Sounds, Making Billboards, Fun with 3 D Text, New Events, and Rotating Objects

Telling a Story Visually. Copyright 2012, Oracle. All rights reserved.

Talking Books in PowerPoint

Animating Dialogue using the "Mouth Comp" method

Alice 3 Workshop. CS & IT Irvine, CA July 9, Copyright 2012 Wanda Dann, Don Slater, Steve Cooper

The Essentials of Alice

Peeking into Computer Science Alice Lab Manual. Lab Manual. Programming

Chapter 2 Motion. Now consider a horizontal pipe running through it (left to right). Now, a vertical pipe (top to bottom) runs through the same point.

Sequence settings for this project. Sequence settings for this project. source monitor. The Program Window: The Bin. The Sequence Window: The Timeline

A Simple Quiz for Alice 3.2: Ask User Functions.

Methods in Alice. Brookwood High School Mrs. Crystal L. Furman

This is the opening view of blender.

Exploring Alice and Object-Oriented Programming

Adobe Flash CS3 Reference Flash CS3 Application Window

Repetition. Add in Objects. Position Objects. Monkey Eat Bananas Repetition Simple Loops and Conditional Loops for Alice 3

Monkey Eat Bananas Repetition Simple Loops and Conditional Loops for Alice 3

3D LEADS 2D: ANIMATING A 3D CHARACTER WITH A 3D STAND-IN USING MAYA

When you move an (unparented and unrotated) item in Layout, generally your mouse movements have the following effects:

Final Cut Pro Trimming: The Fine Points

S A M P L E C H A P T E R

Objects. Welcome to Programming with Alice and Java. If you re CHAPTER CHAPTER OBJECTIVES

Methods (part 1) Alice In Action, Ch 2

Events (Alice In Ac.on, Ch 6)

The PCC CIS etutorial to Windows

Alverton Community Primary School

Alice. Coverage. Mathematical Expressions, Conditional Statements, Control Structures. Arithmetic Expressions Built-in Functions Conditional Execution

Chapter 4 Working with Arena

CrazyTalk Animator 3 G3 Character Creation White Paper

Using Functions in Alice

Using IDLE for

First Walkthrough: Fundamentals of Camtasia Studio

Rump: The True Story of Rumpelstiltskin

New Features of InPrint 3

Using SendPress. From within WordPress, click on the SendPress link in the left column. 5/23/2014 1

Midterm Exam, October 24th, 2000 Tuesday, October 24th, Human-Computer Interaction IT 113, 2 credits First trimester, both modules 2000/2001

Microsoft PowerPoint 2016 Part 2: Notes, Links, & Graphics. Choosing a Design. Format Background

Adobe Flash Course Syllabus

a child-friendly word processor for children to write documents

Skater World: Part Three

PC4G - University of Waterloo December 8, 2017

Chapter 9 Getting Started with Impress:

BONE CONTROLLER ASSET VERSION 0.1 REV 1

Altering Layouts. Changing Font. Universal Engraving Machine. Chapter 18 Altering Layouts

What will you learn: A better understanding of 3 D space How to use keyframes Designing and planning an animation How to render animations

VERSION GROUPWISE WEBACCESS USER'S GUIDE

TSS. Event CAD Tutorial. Event Hire Software. Software Solutions for the Event Hire Industry. 2D/3D Layout and Presentation. T S Solutions Limited

ALICE: An introduction to progamming

Gaddis: Starting Out with Alice Test Bank Chapter One 1 Chapter One

LECTURE 3 ADMINISTRATION SECTION -A

Chapter 18- Relative Vertex (Shape) Keys

StudioPrompter Tutorials. Prepare before you start the Tutorials. Opening and importing text files. Using the Control Bar. Using Dual Monitors

Flash Tutorial. Working With Text, Tween, Layers, Frames & Key Frames

Events (Alice In Action, Ch 6)

Facade Stanford Facial Animation System. Instruction Manual:

Renderize Live Overview

Class-level Methods. Chapter 6 part 1

Awesome PowerPoint Tricks for Effective Presentations

Making Objects Move in Unison: Using Lists. Overview

Making Objects Move in Unison: Using Lists

Answer: D. Answer: B. Answer: C. Answer: C. Answer: B

Word Introduction SBCUSD IT Training Program. Word Introduction. Page Setup, Paragraph Attributes, Printing and More.

Design Combine. From Created by 10/2013

3.2. Keyboard/Calculator/Mouse Use Revision October 21, 2013

BT Web Hosting. Features and functionality

PowerPoint 101 at Pickerington Public Library

Shorter of two objects and changing color V2

2 Getting Started. Getting Started (v1.8.6) 3/5/2007

Creating a Fancier Fox and Inheritance in Alice 3

PowerPoint 2010 Level 1 Computer Training Solutions Student Guide Version Revision Date Course Length

Animate a Name Cards

Getting Started with Crazy Talk 6

How To Get Your Word Document. Ready For Your Editor

Creating a presentation in PowerPoint 2011(Mac)

WORD BASICS: MICROSOFT OFFICE 2010

Working with the Dope Sheet Editor to speed up animation and reverse time.

Balsamiq manual. Balsamiq Main window. Image 1

Top Producer 7i Tips & Tricks Volume 1

Microsoft PowerPoint Tutorial

3.6: First Person Computer Games

The Auslan System Sign Editor User Manual

Prezi Quick Guide: Make a Prezi in minutes

Would you like to put an image on your index page? There are several ways to do this and I will start with the easy way.

The Essentials of Alice (Bunny) By Jenna Hayes under the direction of Professor Susan Rodger Duke University July 2008

Transcription:

Tutorial 3: Use Procedures and Arguments, Add Rotation and Randomization Overview In this tutorial, you will practice using procedures and arguments to create an animation. You will practice rotating an object s subparts and invoking random movement to make an object s movements less predictable. Key Concepts Use procedures to move objects Learned Add Java programming procedures to the Code editor Demonstrate how procedure values can be altered Create programming comments Reorder, edit, delete, copy, and disable programming statements Test and debug an animation Add a control statement to the Code editor Use random numbers to randomize motion Difficulty Beginner: This tutorial is appropriate for someone who has used Alice 3 to: Level Add multiple objects to a scene Code a simple programming instruction Use precise positioning and drag-and-drop positioning Use a one-shot procedure to precisely position an object in a scene Position the sub-parts of an object in the Scene editor Duration 1 hour Notes This tutorial was built using Alice 3.1.81. Part 1: Define the Scenario Review the scenario and corresponding animation. In this tutorial, you are going to create an animation from the scenario defined below. Scenario A witch casts a spell on a troll. Part 2: Add Objects to the Scene 1. Open the SWAMP template. Save the animation project with the file name Tutorial 3. REMEMBER: SAVE FREQUENTLY AS YOU WORK! Animation A witch casts a spell on a troll using one of her potions. The troll doubles in size. 2. Add the following objects to the scene: Troll Witch 2 Pixies Cauldron Spell book Potion Magic stone 1

3. Position the objects in the scene as follows. Notice that some objects were resized, and the spell book is in the witch s hand. When you are finished, your scene should look like this: Feel free to add additional objects to the scene to make it unique! Part 3: Program Objects to Move 1. Click the Edit Code button to go to the Code editor. 2. Select the Witch s Mouth from the instance menu. 3. Drag the turn procedure into myfirstmethod. Select arguments: FORWARD 0.125. 4. Drag the turn procedure into myfirstmethod. Select arguments: BACKWARD 0.125. 5. Run the animation. Observe how the witch s mouth moves like she is talking. 6. Drag a Do In Order control statement into myfirstmethod. The Do In Order tile is located at the bottom of the Code editor: 7. Drag the turn procedures inside of the Do In Order. This will make it easier to copy this statement so your witch can talk a few times. Your programming statement should look like this: 2

8. Copy the Do In Order statement and paste it below. To do this: Right-click on the Do In Order. Select Copy to Clipboard. Then click on the clipboard and drag the object from the clipboard to myfirstmethod. OR Click the Control key (CTRL) on your keyboard, then click on the Do In Order and drag it below. This will also create a copy. After you copy and paste, your statements should look like this: 9. In the Instance menu, select the witch. 10. Drag a say procedure into the first Do In Order, above the turn procedures. Enter text: Cast a spell 11. Drag a say procedure into the second Do In Order, above the turn procedures. Enter text: TROLL RESIZE! 12. Your programming statements should look like this: 13. Run the animation. You will notice that the witch talks first, then moves her mouth. You want her to move her mouth at the same time she is saying something. 14. Drag the first say procedure above the Do In Order. 15. Drag a Do Together to the top of myfirstmethod. 16. Drag the first say procedure (Cast a spell) inside of the Do Together. 3

17. Drag the first Do In Order inside of the Do Together. Your programming statement should look like this: 18. Run the animation. You will notice that the witch talks while moving her mouth. 19. Repeat these steps to edit the second set of programming statements so that the witch says TROLL RESIZE! while moving her mouth. When you are done, your programming statements should look like this: 20. Run the animation. Next, you will program the troll to move his arms, then grow larger. 21. Select the Troll from the instance menu. 22. Drag the say procedure into myfirstmethod, below the other programming statements. Enter text: Oh no! 23. Drag a Do Together into myfirstmethod. 24. Select the troll s left shoulder from the instance menu. 25. Drag a roll procedure into the Do Together. Select arguments: LEFT 0.25. 26. Select the Troll s right shoulder from the instance menu. 27. Drag a roll procedure into the Do Together. Select arguments: RIGHT 0.25. 28. Select the Troll from the instance menu. 29. Drag the resize procedure into myfirstmethod. Select argument: 2.0. 30. Run the animation. 31. Next, you will randomize the size of the troll, so that each time the animation is run, the troll becomes a different size. In the resize procedure, click on the factor argument (currently set at 2.0). 4

Select the Random menu option. 32. Select nextrandomrealnumberinrange???,??? Select 1.0 for the first value, then 10.0 for the second value. This will set the resize factor of the Troll to a random number between 1 and 10 each time the animation is run. 33. Run the animation. Continue editing the animation to make it unique! Part 4: Give the Animation a Unique Ending Now that the animation is complete, you need to give the animation a unique ending. Here are some ideas to spur your thinking: The troll picks up the witch and tosses her around. The pixies cast a spell on the witch and make her very small. The troll, witch and pixies dance. 5