3D Text/Collisions CREATING THESE EFFECTS IN ALICE 3.1.

Slides:



Advertisements
Similar presentations
Mike Scott University of Texas at Austin
Advertisements

Visual Lists By Chris Brown under Prof. Susan Rodger Duke University July 2012.
Microsoft® Small Basic
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.
Lesson 5+: Using He- Builder/She-Builder And Adding Text! Slides are adapted from aliceprogramming.net or
Princess & Dragon – Version 2 By Michael Hoyle under the direction of Professor Susan Rodger Duke University July 2012 Part 3: Billboards, Events, Sounds,
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.
POWERPOINT May 2004 To move the text box - move the mouse over the border of the text box, and once the 4-way arrow appears - click and drag the box to.
Weekly Construction Diary and Statement of Working Days. To populate contract information on the Weekly Diary such as Start Date, Working Days, and Major.
Creating a 3D Interactive Story Prof. Susan Rodger Duke University Feb. 24, 2007.
Alice Learning to program: Part 1 Scene Setup and Starting Animation by Ruthie Tucker and Jenna Hayes Under the direction of Professor Susan Rodger Duke.
Alice Learning to program: Part Two by Ruthie Tucker and Jenna Hayes Under the direction of Professor Susan Rodger Duke University, July 2008.
Google Earth How to create a Google Earth Tour and place it in your Wiki.
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.
Checking for Collisions Ellen Yuan Under the direction of Professor Susan Rodger at Duke University June 2014.
Game Design Creating a game called PING Phase 3: Steps for building basic game.
Working with Numbers in Alice - Converting to integers and to strings - Rounding numbers. - Truncating Numbers Samantha Huerta under the direction of Professor.
Programming Logic Program Design. Objectives Steps in program development Algorithms and Pseudocode Data Activity: Alice program.
Tutorial for Arrays and Lists By Ruthie Tucker. Description This presentation will cover the basics of using Arrays and Lists in an Alice world This presentation.
by Chris Brown under Prof. Susan Rodger Duke University June 2012
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
Alice Learning to program: Part Three Camera Control, Invisibility, and 3-D Text By Ruthie Tucker and Jenna Hayes, Under the direction of Professor Rodger.
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.
Alice 2.0 Introductory Concepts and Techniques Project 1 Exploring Alice and Object-Oriented Programming.
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.
By Deborah Nelson Duke University Professor Susan Rodger July 13, 2008.
By Melissa Dalis Professor Susan Rodger Duke University June 2011 Multiplication Table.
Introduction to Using the Notebook 10 Software for SMART Board Day 2 LIVINGSTON PARISH PUBLIC SCHOOLS Facilitated by S. Waltman.
Lists Tutorial By Deborah Nelson Duke University Professor Susan Rodger July 13, 2008.
Learning Unity. Getting Unity
An Introduction to Alice (Short Version) – Extras! Yossra Hamid Under the Supervision of Professor Susan Rodger Duke University, June 2014 This is a continuation.
Making a Timer in Alice By Jenna Hayes under the direction of Professor Susan Rodger Duke University July
Piñata Game: Keeping Score in Alice By Maggie Bashford Professor Susan Rodger Duke University July
Making Python Pretty!. How to Use This Presentation… Download a copy of this presentation to your ‘Computing’ folder. Follow the code examples, and put.
1 ball, 2 ball, red ball, blue ball By Melissa Dalis Professor Susan Rodger Duke University June 2011.
Skater World: Part Two By Deborah Nelson Duke University Under the direction of Professor Susan Rodger June 1,
Alice Learning to program: Part Two Writing Your Own Methods by Ruthie Tucker and Jenna Hayes Under the direction of Professor Susan Rodger Duke University,
Bunny Eat Broccoli Repetition – Simple loops and Conditional loops Susan Rodger Duke University July 2011.
Creating a Historical Tour in Alice By Jenna Hayes May 2010.
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.
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.
Animation By Maria Elena Bustillos Green Team. What is an Animation?  Animation Effects: In Power Point, the program has Animation effects such as a.
Illuminating Computer Science CCIT 4-6Sep
Headshots in Alice Duke University Professor Susan H. Rodger Gaetjens Lezin July 2008.
Princess & Dragon Part 3: A Knight Comes Riding In—Cameras & Events By Elizabeth Liang under the direction of Professor Susan Rodger Duke University June.
Game Maker Tutorials Introduction Clickball IntroductionClickball Where is it? Shooting Where is it?Shooting.
Creating a UFO Rescue Game in Alice
Skater World: Part Four
Alice Learning to program: Part Three Camera Control, Invisibility, and 3-D Text By Ruthie Tucker and Jenna Hayes, Under the direction of Professor Rodger.
Getting started in Alice
Under the direction of Susan Rodger
Introduction to Events
Creating a UFO Rescue Game in Alice
Adding and Manipulating Objects
Alice Learning to program: Part Three By Ruthie Tucker and Jenna Hayes, Under the direction of Professor Rodger Duke University, 2008.
Memory Matching Challenge
Making Objects Move in Unison: Using Lists
Arrays
Learning to Program: Part 3 Camera Control, Invisibility and 3-D Text
Tutorial for Arrays and Lists
Headshots in Alice Duke University Professor Susan H. Rodger
under the direction of Professor Susan Rodger
Presentation transcript:

3D Text/Collisions CREATING THESE EFFECTS IN ALICE 3.1

3D Text  Over the past two weeks we have looked at creating 3D Text. Remember that when we create 3D Text we need to follow a few simple steps:  1. Open “Setup Scene”  2. Navigate to Shapes/Text  3. Click on the folder new TextModel() – this means we are creating a new object of the TextModel class.  Clicking this it will create a window for our Text Model. Of these we need to pay attention to the initial property values: paint, opacity, and value.  Paint – our default color is white, if you would like to change this initially this is where to do so.  Opacity – this is how much our color is “filled” in on our object. We need this to be at 1.0 for it to show up fully on screen, default this is always 1.0  Value – this is the string literal value that our 3D text should hold, default this reads “hello”, but we may change this to anything we would like to change it to.

“Animating” 3D Text  In many games text always appears on the screen to animate it in a sense that the text is a part of the world. However, this text traditionally does not remain. We will follow this trend by coding the text to appear, disappear, alter the statement/reappear, then fade away again.  Remember though!: This object was not deleted by making it fade. So as such we should remember that we do not want to apply this amongst the items included in our SetB array for collisions.  To set up the code for this simply follow the example I will provide on the next slide -> -> ->

Take a second look…  Remember we did a few things of importance here:  We created some global variables for our strings, not just typing them into the value fields.  We set an intro timer for the opacity, and set the opacity to 0.0 to make it “disappear”  We performed the fade in, change in message, and change of color (paint) in a doTogether()  Finally, we used the setOpacity() procedure outside of our doTogether() in order to set the opcaicty back to 0.0. This is mainly to avoid the issue of text turning “on” then immediately “off”

Collision  Collisions are important to games. This is what gives us an example of reality to draw from. All things in our realm/dimension have innate properties that allow for collisions to occur.  We are going to do the same thing within our game now so that our world has some physical properties applied to it.  To do this we are going to utilize a new listener that is found on the main initializeEventListeners page.  Following these simple steps will allow us to make sure that we are setting up accurate collisions for our game world…

A deeper look…  Looking deeper at the bottom of this page we see that I have added an EventListener.  This can be done by clicking “Add Event Listener” drop down menu  Navigate to the bottom for Position / Orientation, then navigate back to the top of the next menu for addCollisionStartListener  This is where we will utilize our two arrays SetA and SetB  For SetA we need to only add one object: Our player’s avatar, or in other words the character we are playing as. In SetB we need to add all objects to the array that we plan to collide with. Remember arrays are 0 (zero) based in value. So our first object/element of the array is labeled with a 0, like this: [0] treeTrunk

We are not finished though…  Our new event listener wants code too. Like all the other event listeners on the initializeEventListeners tab there is code required if we want any actions to take place when collisions occur.  I have added a line that will make my players avatar (the character my player will play as) bounce backwards in direction by 2.0 meters. This will help simulate some physical reaction of a force meeting a greater force.  Remember: We are working with box collisions in Alice 3.1 so that means if you plan to fly collisions on objects will still happen based upon the box collider surrounding the object. So if at any time you collide with “air” or “open air” you are colliding with the box.

Preparing for next week…  Next week we are going to delve deeper into creating our own procedures or methods. Games do not consist of one method and if they do, they are poorly designed.  We are going to look at migrating our code for specific tasks into their own methods and then setting up our game to look more modularized.  For your homework this week make sure you have added 3D text to the game, have it animated in some fashion and make sure collisions are set up.  We will also be discussing camera orientation and position next week as it pertains to the player in the game. Have a great week and I will see you all on Sunday!