Tutorial on Bunny visi/ng his animal friends - parameters, events for Alice 3

Similar documents
How Tall Are You? Introducing Func6ons

How Tall Are You? Introducing Functions

ALICE TUTORIAL. Introduction to Alice 3

The Basics. By Jenna Hayes under the direction of Professor Susan Rodger Duke University July

The Essen(als of Alice (Bunny) By Jenna Hayes under the direc(on of Professor Susan Rodger Duke University July 2008

Let's Race! Typing on the Home Row

Princess & Dragon Part 3: A Knight Comes Riding In Cameras & Events

Once you have chosen the water world this is how your screen should look.

Demo. Getting Started with Alice Demo

Princess & Dragon Version 2

This tutorial will guide you through the process of adding basic ambient sound to a Level.

Alice and Daisies: Posi/oning and Moving Objects in Alice. By Jenna Hayes under the direc/on of Professor Susan Rodger Duke University July 2008

How to create a cove for cove lighting in DIALux In this tutorial you will learn how to make a cove similar to the one in the following image

Begin at the beginning," the King said, very gravely, "and go on till you come to the end

Alice Learning to program: Part Two by Ruthie Tucker and Jenna Hayes Under the direction of Professor Susan Rodger Duke University, July 2008

Objects in Alice: Positioning and. Moving Them July 2008

Part II Coding the Animation

Alice: A Visual Introduction to Programming. Chapter 1 Part 2

ChatBot. Introduction. Scratch. You are going to learn how to program your own talking robot! Activity Checklist. Test your Project.

Inserting Images Into Documents

Creo Extrude Tutorial 3: Hole, Fillets and Rounds

Tutorial 4: Overhead sign with lane control arrows:

Princess & Dragon Part 2: Teaching a Dragon to Fly Methods & Proper:es

Creo: Hole, Fillet, and Round Layout/Dimension Tutorial. By: Matthew Jourden Brighton High School

Overview. Scene Changes. Camera Markers in Alice 3. Open a new Alice world

Learning to Program: Part 2 Wri0ng Methods and Events

By Maggie Bashford Professor Susan Rodger Duke University July

Challenge 1: Tami s World

g. Click once on the left vertical line of the rectangle.

To solve a problem (perform a task) in a virtual world, we must accomplish the following:

Motion Simulation - The Moving Man

Alice. our characters it would be nice to be able to. This can simplify the story and sometimes add. Zoom in on our first character when she talks

There are two types of cove light in terms of light distribution inside a room

An Introduction to Alice

PowerPoint 2016: Formatting Pictures. Introduction

Cube in a cube Fusion 360 tutorial

Pong! The oldest commercially available game in history

Moving Man Introduction Motion in 1 Direction

SCRAPENDIPITY Designs. Electric Quilt 7 Tutorial. Building a Quilt

UNIT TWO: Data for Simple Calculations. Enter and format a title Modify font style and size Enter column headings Move data Edit data

Creo Revolve Tutorial

Creating a Historical Tour in Alice

Photo Story Tutorial

Nut and Bolt Tutorial

Ready, SET, go! By Melissa Dalis Professor Susan Rodger Duke University July 2011

Module 2: Radial-Line Sheet-Metal 3D Modeling and 2D Pattern Development: Right Cone (Regular, Frustum, and Truncated)

ArbStudio Triggers. Using Both Input & Output Trigger With ArbStudio APPLICATION BRIEF LAB912

Creo Extrude Tutorial 2: Cutting and Adding Material

Introduction to Parametric Modeling AEROPLANE. Design & Communication Graphics 1

04. Two Player Pong. 04.Two Player Pong

Computer with Scratch program.

Importing and processing gel images

In this lesson we are going to create cartoon eyes and parent them to the head bone.

Add in a new ghost sprite, and a suitable stage backdrop.

Lost in Space. Introduction. Scratch. You are going to learn how to program your own animation! Activity Checklist.

Davis Art Images: Create and Share Slideshows

Overview. The Game Idea

Optional extras. Varying the basic technique. Making a parchment that is other than square

Kaltura CaptureSpace Lite Desktop Recorder: Editing, Saving, and Uploading a Recording

CS Problem Solving and Structured Programming Lab 1 - Introduction to Programming in Alice designed by Barb Lerner Due: February 9/10

Introduction to Alice. Alice is named in honor of Lewis Carroll s Alice in Wonderland

Pong! The oldest commercially available game in history

Create a Flowchart in Word

PlanSwift 3D Viewer Plugin User Guide

RPG CREATOR QUICKSTART

Ask Jo: Quilt Designing on the Computer

Principles and Applications of Microfluidic Devices AutoCAD Design Lab - COMSOL import ready

Recording your Voice Tutorials 3 - Basic Uses of Audacity Wayne B. Dickerson

Solidworks Tutorial Pencil

Create a Simple Game in Scratch

Photoshop Elements Hints by Steve Miller

Meteor Game for Multimedia Fusion 1.5

Ansoft Designer Tutorial ECE 584 October, 2004

Managing images with NewZapp

Veco User Guides. Property Photos & Images

Draw IT 2016 for AutoCAD

Creating Your Own Ballad of an Eagle Scout Using the Ballad Template. Produced by Scoutworks.weebly.com All Rights Reserved

Collage Images. By Rob MacIlreith For Use with GIMP 2.8 Last Updated July 2013

Lesson 2 Game Basics

2. Creating and using tiles in Cyberboard

84 part video tutorial training course. The course is 100% free with no catches or exclusions. You don

2

Getting Started. Before You Begin, make sure you customized the following settings:

CPM Educational Program

Patterns and Relationships

Microsoft Excel Lab Two (Completed 03/02/18) Transcript by Rev.com. Page 1 of 6

Photoshop CS6. Table of Contents. Image Formats! 3. GIF (Graphics Interchange Format)! 3. JPEG or JPG (Joint Photographic Experts Group)!

Lesson 6: Drawing Basics

The VG-Clip Player. This section is required for anyone that DOESN T own the FULL COLLECTIONS of their card sets And have Cards On-Stage

Build the clerestory of Chartres Cathedral

Try what you learned (and some new things too)

Rock Band. Introduction. Scratch. In this project you ll learn how to code your own musical instruments! Activity Checklist.

Name: Date Completed: Basic Inventor Skills I

In this video tutorial, we re going to take a look at continuity editing and how we can use editing techniques to compress time.

SCHEDULE USER GUIDE. Version Noventri Suite Schedule User Guide SF100E REV 08

GAME PROGRAMMING & DESIGN LAB 1 Egg Catcher - a simple SCRATCH game

QUICKSTART COURSE - MODULE 7 PART 3

Tutorial 1 getting started with the CNCSimulator Pro

AXIS Fence Guard. User Manual

prepared by Allison Hwang for T. Purdy 2011

Transcription:

Tutorial on Bunny visi/ng his animal friends - parameters, events for Alice 3 Susan Rodger Duke University June 2009 Updated by Yossra Hamid on October 2015

Start with a new world Add a bunny, a camel, and several animals of different heights, spread around the world I picked bunny, camel, chicken, fox, peacock, caiman any animals will do but make sure you have some tall animals.

Problem The bunny wants to visit each animal where visit means: the bunny and the animal face each other, the bunny moves close in front of it, the bunny says hi and then the bunny jumps over it. However, the bunny can only jump 1 meter high.

Parts of the Tutorial Part 1: Bunny visit each friend Part 2: Bunny either go around or jump over Part 3: Create an event to click on animal to visit

Part 1: bunny visit camel Create a bunny method called visit for the bunny to visit the camel

Part 1: bunny visit camel At the top of the method editor, click on Add a Parameter. A parameter is a piece of informa/on that helps the method work. In this case, the informa/on we want to know is which friend the bunny is visi/ng (the camel), so name the parameter FriendToVisit

Part 1: bunny visit camel Click on value type of the parameter, and find the SModel in the object tree. Click OK.

Part 1: bunny visit camel The bunny visit method should now look like this: Now, you try to add the following code: Bunny turns to face the friendtovisit friendtovisit turns to face the bunny Bunny moves forward 1 meter

Enter the following code The bunny turns to visit the friendtovisit and moves toward it. To test it out, add this.bunny.visit to myfirstmethod, pick the camel as FriendToVisit, and PLAY

How to move the bunny all the way to the camel Click on bunny, click on Func/ons. Click and drag this distance to, (choose FriendToVisit) on top of the 1 meter.

Resul/ng in. Click Play Yikes, The bunny goes into the camel! We want the bunny to stop 2 meters in front of the camel (make sure the camel is more than 2 m away).

Use Math and subtract 2 Click on white arrow Select math, then minus sign then 2

Resul/ng in the following code The bunny will stop two meters in front of the center of the camel Try out the code!

Next add a gree/ng and jump over Have the bunny say a gree/ng Then have the bunny jump over the camel The bunny must jump up The bunny must jump 1m to the camel, plus the camel s depth, plus another 1m past the camel Total distance: 2 + camel s depth Find camel s depth in the camel func/ons The bunny jumps down (code on the next page)

Add the remaining code Change when the world starts to bunny.visit and Play

Go to myfirstmethod, and have the bunny visit all of their animal friends!

Add another parameter of type String so bunny can give a different gree/ng to each animal Click on the tab for bunny.visit first Click on add parameter The type is TextString since the bunny will say worlds The name is gree/ng

The result is Now click and drag gree/ng over the phrase the bunny says Hello Result is:

Back to MyFirstMethod, add gree/ngs Replace gree/ng=unset to a different gree/ng for each animal. Then Click Play

Part 2: Going around or over friend bunny can only jump 1 meter high If friend is shorter than 1 meter, it is ok to jump over If friend is 1 meter or taller, then go around them

First drag in an If/Else from the boiom of the window, placing ajer the say

Select true, Rela/onal DecimalNumber, less than < symbol, and select 0.5 for the first number and 1 for the second number.

Using func/ons, replace 0.5 with the FriendToVisit s height

Move the bunny jump over code and put ajer the if. Then add code ajer the else to go around. Then Play

Part 3 create an event to visit the friend clicked on To stop the movie from playing as is, go to Ini/alizeEventListeners, and delete myfirstmethod from sceneac/vated. You can add it back in later.

Click on Add Event Listener, Mouse, and addmouseclickonobjectlistener

Drag over the visit code into the do in order and select any animal as friendtovisit. Drag getmodelatmouseloca/on over the animal

Now click play and click on different animals, but not the bunny The bunny will go visit the animal you click on. Click on another animal and it will go visit that animal.