Wednesday, April 27, 2011

Scripting Progress

I eventually got the 3rd person movement working by placing a script on the character, a smooth follow script on the camera and making the Watchman the target. It sounds easy and would have been for me if I hadn't got blinded with all the coding resources on tinternet. The script for 3rd person is huge (400+ lines) but I don't want to trim it until I place the animations and name them in the code. All the movement is controlled through the keys and not the track-pad so it should be easily controlled with an external joy-pad. The camera code is supplied by Unity but all in all it took an excruciating amount of placing and removing code before it did what was wanted. Its not nearly right but its getting there.

No comments:

Post a Comment