anachronox-sdk/docs/planet/20.html
2002-01-21 00:00:00 +00:00

78 lines
4.2 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<TITLE>Anachronox Editing Documentation</TITLE>
</HEAD>
<BODY BGCOLOR="#000000" TEXT="#EFEFEF" LINK="#00FFFF" ALINK="#FFFFFF" VLINK="#05F3D0">
<CENTER>
<P>
<FONT FACE="Helvetica">
<FONT COLOR="#0055DD"><B>Tutorial 20: Moving entites , Rolling & Scaling.</B>
</FONT>
</CENTER>
<P>
<HR>
<BR>
Change the cmd node to read:<BR>
Newent=ob_automap;floor=0
<P>
Drop a second node away from the first node. Play script. Watch the automap move.
<P>
He might do something weird at the beginning. If the entity does NOT have a focus path that it is looking at, it will move forward in the direction of the spline. Drop a bunch more nodes. Watch script.
<P>
Does your camera still move away from the automap? A POWERFUL thing to use is F7. this plays the script without any camera. USE THIS!!!!!!!!!!!! (if the script is short, be sure the yellow line on the timeline is near the beginning, so you can see the whole thing)
<P>
Now lets give it a focus. Move to the focus path of the automap, hit ctrl. Have it look at a new path.
<P>
NOTE: I LIKE TO PAIR UP MY PATHS. CAM 1 & CAM 1 FOCUS on paths 1 & 2, AUTOMAP on 3 & AUTOMAP focus on 4. if you didnt that is fine, its just the method I like to use for easy organization.
<P>
Drop some nodes on this new focus path (Did you label it???). now play the script, notice the automap changing its focus.
<P>
Now lets give it some ROLL.
<P>
Move to the roll path in the automap section. Drop some nodes with CTRL. Select one, and hit 1 to change its value. Be sure to look at the velocity graph. Play the script. Try messing with the other nodes as well. Be sure to use the 3 key as well to do some other interesting rolls.
<P>
Now lets play with scale.<BR>
You should remove all MOVEMENT nodes for easy viewing. Drop some nodes in the scalew path of the automap.
<P>
Grab and move the second node up by hitting the 1 key. Play script. It should get bigger.
Pretty simple.
<P>
Now to manipulate x,y,z. as you keep hitting the 1 key, you will cycle through, xyx,x,y,z back to xyz.
<P>
USE THE VELOCITY GRAPH! Notice as you move the x value a new color coded line removes itself from the regular line. Hit 1 again. Move the y value. Hit 1 again, move the z value, hit 1 again and now you can move xyz but the previous values are still locked. HANDDEEEEEE!
<P>
<B>Bipeds.</B><BR>
Now lets start from scratch again and make a script that moves boots.
<P>
Newent=character_boots:floor=1<BR>
When you drop the second node for boots, watch how he moves from point to point.
<P>
Does he move to slow, move that node (in 3d) further away. Which will speed him up. Now take the 2nd node on the timeline and move it to the right. Now extending the time it takes to get to that point. Play this.
<P>
Do you notice how his animation changes speed? This is what we call SMART ANIMATE.<BR>
It means that depending on boots velocity, he will change the rate of his animation. This is so that his feet always STICK to the ground. If the velocity gets too fast he will switch to his run animation. More on SMART ANIMATE later.
<P>
Moving a bipedal character around takes some getting used to. Experiment and get the look that you like.
<P>
<P>
Just 4 fun, hone yor Skillz: the Automap!<BR>
The Automap is a great model to learn with. Do a fly through with the automap. Create a camera path & focus that moves around the level. Also include an automap with its own focus that moves around the level as well. Make sure there are lots of turns, starts & stops. When the automap turns, include some roll to make it look like it is banking. It is a lot like animating. (You may notice weird light things happening to it, dont worry about his for now)
<P>
ADVANCE SKILLZ: Another cool model is <BR>
Ob_dockshiplit<BR>
I move this one around like a vtol helicopter. When it moves forward, its nose dips down…. Do that by moving its FOCUS down. When it stops/puts on the brakes, it has to point its nose upward.
<P>
Load up map bricksb and go out to the dock area. Watch each ship. Each one has a different way of moving.
<P>
<P>&nbsp;<P>
</BODY>
</HTML>