Saturday 25 October 2014

Prehistoric Game [Dev Chapter 4]

[Update]


I have been working on the scripting for controlling the animation states of the animated dinosaur model I imported.

Through scripting I have made it so the dinosaur now has multiple animation states. Attack and walking, the dinosaurs attack animation is played every few seconds and then returns to the walk animation. While the dinosaur's attack animation is playing the dinosaur moves back 0.3 units every frame the animation is playing. I added this feature because while the bite animation for the dinosaur is playing it stops walking therefore it should move with the terrain so it doesn't look like the dinosaur is sliding along the terrain, thus creating the illusion the dinosaur and player are the moving objects. Then once the attack animation has finished and the dinosaur has begun its walk animation it will return to its original position. The cycle will then repeat for an infinite amount of time.


No comments:

Post a Comment