Backtime travelling Ted

Beskrivelse:
Den gale videnskabsmand Ted er blevet bortført af rumpirater, som ønsker at udnytte Teds nyeste opfindelse; en tidsmaskine. Ted har sat sin tidsmaskine ind i sin krop, så han kan stå stille i tiden imens alle andre rejser baglæns. En egenskab ved tidsmaskinen er at den tillader ham at fjerne genstande fra tidslinjen. Ted bliver nu nødt til at flygte fra rumpiraternes rumskib for at undgå at blive dissekeret af den gale rum-doktor. Bundet på hænderne, bevæger Ted sig igennem piraternes rumskib i et forsøg på at undslippe sin grusomme skæbne

Holdnavn: Hold

– Mads Vestergaard Carlsen
– Casper Jensen
– Rasmus Søgaard Jacobsen
– Kasper Urban Kajgaard
-Anne Juhler Hansen
-Mathias Klitgaard Berthelsen

LINK TIL DOWNLOAD AF SPILLET
BTT

Præsentation
BackTimeTravellingTed

Since there is no builtin sprite support or generally 2d animation support in unity3d, we created a framework for sprite animation.
Therefore we wrote an animationcontrol script which you supply with the basic texture animations.
All you need to do is call the functions in the script to animate, and it will find the corresponding texture, while taking into account the direction the character is facing.
Since head legs body and arms are different sprites all can be animated independently of each other.

//For example when NPC Move command is called, you can call WalkRight if it is moving to the right as a method call in the movement method
//Make a method call to talk until told to be quiet as an event (TODO: add timer overload)
WalkRight(); // Character will play walking right animation on leg sprite

FaceLeft(); //Relevant sprites will be turned left, and the npc state will be set to facing left influencing other animations which have a direction
StandStill(); //Stop walking animation and standstill
Talk(); //Start talking animation (Keeps running until BeQuiet is called)

FaceRight(); //Face the npc to the right
WalkRight(); //Walk animation to the right
BeQuiet(); // Stop all talking animations

And more functions exist.. We didn’t get around to using it that much though!