Creating An Animation Program Part 2 Alice. Method A segment of program code (instructions) that...
Transcript of Creating An Animation Program Part 2 Alice. Method A segment of program code (instructions) that...
Bugs
Error in computer programs. (The object doesn’t do what you told it to do.)
Once the BUGS are removed, you have successfully DEBUGGED the program
Open “Snowpeople Scenario”
Make the snowwoman’s head turn red as if she is blushing after the snowman comes over to the group.
CommentsAre not instructions that cause some action to take place.
The program will ignore comments when it is running
USEFUL
When someone else want to read your code
Assignment
Read Chapter 2, Section 2 A First Program
Read Tips & Techniques 2,
Orientation and Movement Instructions
MOVEIs called a TRANSITIONAL move
Left
Right
Up
Down
Forward
Backward
Egocentric – Object move is relative to its own orientation
TurnRotational motion
Left
Right
Forward
Backward
Rotational motionLeft
Right
Roll
Add an AXES (shapes) to an object and make the axes a
“Vehicle to” the other object
Subpart RotationWhen a subpart is selected, the turn or roll is at the PIVOT point. Which is usually the joint.
Orient ToWhen 2 objects MUST move together. The orientation of the 2 objects must be synchronized. They will have the same sense of UP, DOWN, LEFT, RIGHT, FORWARD, BACKWARD
Vehicle MethodAnother way to synchronize the movements of 2 objects.
Under PROPERTIES
Choose VEHICLE
Arguments: Duration, Style, asSeenBy
Duration – An amount of time (seconds) “0” – instantaneous movement
Negatives are not used
Style – How one movement BLENDS into next
asSeenBy – Uses the orientation of one object to guide the movement of another object
Turn to Face & Point AtTurn to Face – Causes one object to pivot around until its front is facing some other object
Point At – Aligns two objects from the center of one of the center of anotheronlyAffectYaw (true) – Object points at another object without tipping
Move
Moving an object in relation to the location of another object
Moves an object to a specific location in the world