Sunday, May 9, 2010

Scripting Waypoints



(Red Gismoz) For the character script I created it to allow the user to place waypoints in the scene and allow to it to set its animation to be played and also change the speed of it's movement.

Other cool features i added to this script include, holding time, idle animation, and begin waypoint when triggered.

(Blue Gismoz) The camera script is exactly the same as the animation script however the animation part is removed as well as the start when trigger. Only different thing on this script is the option to allow the camera to move or to skip, making it useful for different cuts.

How these scripts work is fairly easy. For both the character and the camera script they have two separate scripts. One script is attached to the main camera or character and the other scripts is attached to the waypoints. The script attached to the mains has a component where you drag your waypoint into list. In the waypoint script it contains all the options which the user can input, these inputs then get sent to the main script for it to change the character's/camera's variables.

No comments:

Post a Comment