Lesson 9B Adding sound and Billboards. What is a function? Give an example. How do you create a method? Give an example. What is an event? Give examples.

Slides:



Advertisements
Similar presentations
Mike Scott University of Texas at Austin
Advertisements

Space Man Sam: Grammar Mistakes By Aleis Murphy Duke University, Under the direction of Professor Susan Rodger July 2010.
Lesson 7 C Creating a New World Method— the Dragon Captures the Princess Slides are adapted from aliceprogramming.net or
Alice Learning to program: Part Four Creating Sounds, Making Billboards, Fun with 3-D Text, New Events, and Rotating Objects by Ruthie Tucker and Jenna.
Princess & Dragon – Version 2 By Michael Hoyle under the direction of Professor Susan Rodger Duke University July 2012 Part 2: Using Methods.
Princess & Dragon – Version 2 By Michael Hoyle under the direction of Professor Susan Rodger Duke University July 2012 Part 3: Billboards, Events, Sounds,
Getting Started With Alice By Ruthie Tucker under the direction of Prof. Susan Rodger Duke University, July
Coloring Randomly: Random Selection in Alice By Jenna Hayes under the direction of Professor Susan Rodger Duke University July 2008.
How Tall Are You? Introducing Functions By Jenna Hayes under the direction of Professor Susan Rodger Duke University July 2008 Updates made June 2014 by.
Princess & Dragon Part 2: Teaching a Dragon to Fly—Methods & Properties By Elizabeth Liang under the direction of Professor Susan Rodger Duke University.
Lets Play Catch! Keeping Score in Alice By Francine Wolfe Duke University Professor Susan Rodger May 2010.
Skater World: Part Four By Deborah Nelson Duke University Under the direction of Professor Susan Rodger June 2009.
Lights Camera Action! Part 3: BDE Events By Deborah Nelson under the direction of Professor Susan Rodger Duke University July 2008.
Presenter: Carol Liss, Co presenter: Christian Lizier,
Creating a 3D Interactive Story Prof. Susan Rodger Duke University Feb. 24, 2007.
Princess & Dragon Part 4: Breathing Fire—Adding Effects to Alice By Elizabeth Liang under the direction of Professor Susan Rodger Duke University June.
Animated Charting Using the Alice Bar Chart Template World By Elizabeth Liang under the direction of Professor Susan Rodger Duke University December 2010.
Making a Book Report in Alice by Jenna Hayes Under the direction of Professor Susan Rodger Duke University, June 2010.
Getting Started With Alice By Ruthie Tucker under the direction of Prof. Susan Rodger Duke University, July
Code Club Session 2 Dance Party. What will we learn ?  How to change the background  How to create animations  How to make objects talk to each other.
Making a Boat Racing Game in Alice By Jenna Hayes Under the direction of Professor Susan Rodger Duke University, July 2010.
Skater World: Part Two By Deborah Nelson Duke University Under the direction of Professor Susan Rodger June
Princess & Dragon – Version 2 By Michael Hoyle under the direction of Professor Susan Rodger Duke University July 2012 Updated June 2014 by Ellen Yuan.
PowerPoint Tutorial By Education World Your Logo Here It’s easier than you think!
Changing Camera Views! Part 2: Simple Scene Change & Lighting Fixes By Bella Onwumbiko under the direction of Professor Susan Rodger Duke University July.
3–D Helium Molecule Tutorial Alice Project Duke University Professor Susan H. Rodger Gaetjens Lezin June 2008.
Introduction to Arrays. definitions and things to consider… This presentation is designed to give a simple demonstration of array and object visualizations.
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.
Changing Color, Using Text Objects, and Random Selection in Alice By Jenna Hayes Under the direction of Professor Susan Rodger Duke University, July 2008.
Animating Objects in Groups: Using Arrays and Lists By Ruthie Tucker under the direction of Professor Susan Rodger Summer 2008.
CompSci 4 Fall 2010 Classwork 2 – Princess and Dragon World By Elizabeth Liang under the direction of Professor Susan Rodger Duke University.
Princess & Dragon Part 1: Objects in an Alice World By Elizabeth Liang under the direction of Professor Susan Rodger Duke University May 2010.
An Introduction to Alice (Short Version) – Extras! Yossra Hamid Under the Supervision of Professor Susan Rodger Duke University, June 2014 This is a continuation.
1 ball, 2 ball, red ball, blue ball By Melissa Dalis Professor Susan Rodger Duke University June 2011.
Alice Workshop November 2009 By: Kim Glavan New Lenox School Dist #122.
Bunny Eat Broccoli Repetition – Simple loops and Conditional loops Susan Rodger Duke University July 2011.
Can I get your number? By Melissa Dalis Professor Susan Rodger Duke University June 2011.
Making Billboards By Deborah Nelson Duke University, Under the direction of Professor Susan Rodger, July 14, 2008.
Creating a Historical Tour in Alice By Jenna Hayes May 2010.
Balancing the scales: Inequalities By Melissa Dalis Professor Susan Rodger Duke University June 2011.
The Essentials of Alice Mrs. Jayne Slease SBMS CTE Computer Science and Animation Credit to Duke Students under the direction of Professor Susan Rodger.
Tutorial for Arrays and Lists. Description This presentation will cover the basics of using Arrays and Lists in an Alice world It uses a set of chickens.
Creating a 3D Interactive Story Prof. Susan Rodger Duke University July 19, 2007.
Changing Camera Views! Part 1: Set Point of View to By Bella Onwumbiko under the direction of Professor Susan Rodger Duke University July 2013 Updates.
Skater World: Part Four By Deborah Nelson Duke University Under the direction of Professor Susan Rodger June 1, 2009.
An Introduction to Alice By Jenna Hayes under the direction of Professor Susan Rodger Duke University, June 2009 Updated June 2014 by Ellen Yuan.
Illuminating Computer Science CCIT 4-6Sep
Using Placeholders to Simplify your Methods: Learning Methods, Part 2 By Deborah Nelson Duke University Professor Susan Rodger June 16, 2008.
Headshots in Alice Duke University Professor Susan H. Rodger Gaetjens Lezin July 2008.
Lesson 8C Animation and Events. Step 3: Animation Drag it into the method and have him say “let her go!” Click on the knight in the object tree and scroll.
Princess & Dragon Part 3: A Knight Comes Riding In—Cameras & Events By Elizabeth Liang under the direction of Professor Susan Rodger Duke University June.
Presenter: Carol Liss Timberlane Regional Middle School 6 th and 7 th grade Tech. Educator Co presenters:
PowerPoint Practice Exercise 1.Save this file on your H drive in Word folder as Practice. 2.Edit each slide according to the instructions provided in the.
The Essentials of Alice By Jenna Hayes under the direction of Professor Susan Rodger Duke University May 2009.
Making Billboards By Deborah Nelson Duke University, Under the direction of Professor Susan Rodger, July 14, 2008.
An Introduction to Programming with Alice Text and Sound in Alice Worlds.
Microsoft® PowerPoint  Entrance. Controls how an object first appears on a slide.  Emphasis. Draws attention to an object that is already.
For those who hate computers.
Skater World: Part Four
An Introduction to Alice (Short Version)
Changing Color, Using Text Objects, and Random Selection in Alice
Princess & Dragon Part 2: Teaching a Dragon to Fly—Methods & Properties By Elizabeth Liang under the direction of Professor Susan Rodger Duke University.
An Introduction to Alice
Princess & Dragon Part 3: A Knight Comes Riding In—Cameras & Events
Getting Started With Alice
Professor Susan Rodger
Headshots in Alice Duke University Professor Susan H. Rodger
Professor Susan Rodger
Presentation transcript:

Lesson 9B Adding sound and Billboards

What is a function? Give an example. How do you create a method? Give an example. What is an event? Give examples. What is a built-in method? How can you add sound?

Step 2: Adding Sound Continued Click on import sound and find the creature_roar2.Wav. Click on import when you have found it. You will see that it appears under Sounds. You can preview the sound by pressing the green play arrow.

You will see that you can also record a sound. This feature currently only works on the Alice 2.2 PC version and not the Mac version. An alternative for Mac users is to use another program to record and save the sound and then import it into the world.

Step 2: Animation with Sound Drag in the creature_roar2 clip into the Do together outside of the Do in order. We want the fire and sound to appear and play at the same time. Drag in a Do in order and put all three lines of code inside. Drag in a Do together and put the Do in order inside.

Step 2: Testing dragonFire Again Play the world and press F when the dragon begins flying. You should see the fire and hear the dragon roar. Make sure your volume is on and your headphones are working! The next step is to add the words “The End” to the animation and have them show up at the end after the knight catches the princess.

Step 3: 3D Text Click on Create 3D Text at the end of the local gallery in order to add a 3D Text object to the world. Type in the “The End” and select a font that you think looks good. We chose Lucida Blackletter but every computer has their own list of fonts. Click OK when you are done. Rotate and move the text up with the positioning tools.

Step 3: 3D Text Properties You will notice that the 3D Text object appears in the object tree. 3D Text is an object just like all the other objects in Alice, but they do have some special properties. Click on the properties and you will see that you can change what the text says, and what font it is from the properties panel. Change the color of the text to grey. Set the isShowing to false.

We will now animate the text to appear at the end.

Step 3: 3D Text Animation We will add this code to the end of knightRescue. If you do not have the knightRescue tab open, go to world methods and then click the edit button next to knightRescue. Scroll down to the end of knightRescue and drag in the 3D Text isShowing property into the very end of the method, outside of the last Do together.

Step 4: Making a Billboard A billboard in Alice is a flat rectangle with a picture on it. You can either find the images for billboards online or you can make your own in an image editing program (like Paint or Photoshop) or Powerpoint. Either download the forest-1.jpg file from the resources file or use another image of a forest that you find online. Save it on your computer so you can find it later. To put the billboard into the world, click on File and select Make Billboard. Find the image and click Import.

Step 4: Positioning the Billboard Click on add objects in order to move the billboard into place. Position the billboard behind the tower and the dragon. By resizing it and moving it backwards. Billboards can also be animated like any other object. We will add a curtain billboard that will rise at the beginning of the animation and drop back down at the end.

Step 5: Another Billboard The curtain we will be using is another billboard that you can download from the tutorial site. You can also find similar images online. Make a Billboard with the stage- curtain1 image or another similar image. Turn and Move it forward and resize it so that it covers the entire view.

Step 5: Animating Billboard To raise the curtain at the beginning we will add a line of code to world.my first method. Click on the world.my first method tab in the method editor. Click on the stage-curtain1 billboard in the object tree. Drag the stage-curtain1 move method into the code directly below the two comment lines. Have the curtain move up 10 meters. Set the duration to 5 seconds.

Step 5: Animating Billboard Continued To lower the curtain at the end we will add a line of code to world.knightRescue. Click on the world.knightRescue tab in the method editor. Drag the stage-curtain1 move method into the code into the end directly below the 3D text isShowing command. Have the curtain move down 10 meters. Set the duration to 5 seconds.

Congratulations! Now play your world. Watch the curtain pull up and the animation play. Billboards, Sound, and 3D effects help add another layer to your world to make your animations look more polished and engaging.

Congratulations on finishing Lesson 9! Use the basic skills that you have learned to create your own Alice animation. Welcome to the Alice world!