CodeBase - CameraToonMovement

Return to the CodeBase listing

Category: Miscellaneous

Version: 1.0

0
0

Information

Uploaded: 22nd Aug 2008 01:38

Modified: 1st Jan 1970 01:00

Author:  The Sab

Summary

Pass an object and/or camera number to the functions to facilitate basic mouse and keyboard movement.

Full Description

I made this program so I could pass it along to other projects. Users should call function InitializeMovement() before the main loop, and call either function MoveCamera(CamNo) for just a free floating camera or function MoveToon(ToonNo, CamNo) to control an object with a follow camera. With Toon Movement, hold the Left Mouse Button to move the camera around the toon without turning the toon. Hold the Right Mouse Button to turn the toon itself. Hold both buttons to move the object forward. The arrow keys will also move the object/camera. I used scancodes to map the arrowkeys, so that the defaults can be changed. There is a full set of Get and Set functions for all the variables. Note that this program does not do anything with collisions. Probably a lot of this kind of code out there, but let me know if it is useful.

Comments

No comments yet.