CRE8OR - game maker for anim8or

 


EVENTS


       In this tutorial we'll start from a new an8 file.
Go to the anim8or file and start wiht a new object. Make this object a plank.

Add a scene and add this to the scene.

Start a new project in Cre8or. Add Assign an an8 File.

Select the An8 file of your plank. Go to your plank object and "Edit Physical" and make it a cube:


Now I want the cube to spin around rapidly when you press the <Left> button. In the entity go to "Add Event" -> "Keyboard" -> "<Left>"



Nwo on the right side of the screen Click and Drag the "Torque" button in the "Physics" tab:


This should pop up:

Set Pitch/Tilt to 100. There are three values Pitch/Tilt (X-Axis), Yaw/Pan (Y-Axis), and Roll (Z-Axis). My plank was oriented so that I want it to spin around on the X-axis.

Now run the project:

And nothing happens (at least for me) when the <Left> is pressed. Why?Because the force is too little. Go back and double clikc the torque action. Try 50,000 that worked for me:

Now run the project:

Two things it spins uncontrollably when I want it to spin fast and I can't see it when is spins away. Let's fix those. Add a new event this time the "Entity" -> "Step" event:



Now add an action "Camera" -> "Look At Me"





The "Step" Event happens each frame.So at each from the camera should look at this entity.

Now run the project:

And the camera should always look at the plank.

Now add a new event, the "Create Event":



Now add an action to this event "Physics" -> "Damping"

Damping prevents objects from excelerating, like when you fall from great heights you reach a terminal velocity bcause of the opposition of the atmosphere.



I set the values to 2.0 and 2.0. Linear is for movement and Angular is for spin.
You should also now increase the forse applied, I doubled my original force.

Now that you're done with the basics go back to

Tutorials Page


Copyrights (C) 2007 Keith Tabert
Thanks to R. Steven Glanville for Anim8or, Robin