Blockland Forums > Modification Help
Do someone know how to make a Playertype with Milkshape3D?
Filipe:
Could someone tell me how I make animations to work in-game then? Since I know how to make animations already
Cell603:
Well, if you don't have any extra animations besides the default ones, you just need to name your animations as the default names during export.
However, if you have extra/new animations, you will need to use TSShapeConstructor datablock to make your own playertype.
--- Quote ---datablock TSShapeConstructor(playertypenameDts)
{
baseShape = "./shapefilename.dts";
sequence0 = "./root.dsq root";
.........
sequence35 = "./wrench.dsq wrench"; //sequence 0 to 35 are the default animation sequences.
sequence36 = "./cry.dsq cry"; //here I add a new sequence named "cry", so later on you can play this animation in game.
......... //you can add more animations if you need.
};
--- End quote ---
Filipe:
--- Quote from: Cell603 on April 17, 2012, 01:24:46 PM ---Well, if you don't have any extra animations besides the default ones, you just need to name your animations as the default names during export.
However, if you have extra/new animations, you will need to use TSShapeConstructor datablock to make your own playertype.
--- End quote ---
I need to name every animation the default player have? Because I am curious if i need to create an animation that it gets replaced in-game
Cell603:
--- Quote ---I need to name every animation the default player have? Because I am curious if i need to create an animation that it gets replaced in-game
--- End quote ---
Okay I kind get what you are trying to do. I will assume you are making a completely new playertype.
Let's take a real life example, so the explanation will make more sense I hope.
The red words are the names of animation, and the green words are animation files that each names are linked to.
I believe that you can't change the name of sequence 0 to 35 since they are the default animation names used by Blockland, and you DO need all of them for your playertype to work.
However, you do not need to make unnecessary animations. The bottom line is that you MUST have root animation.
Here is how it works.
--- Quote ---datablock TSShapeConstructor(AirDragonDts)
{
baseShape = "./AIRdragon3.dts";
sequence0 = "./Adrag_root.dsq root"; //root animation is required
sequence1 = "./Adrag_run.dsq run";
sequence2 = "./Adrag_run.dsq walk"; //this playertype doesn't need walk animation, so we can use the run animation file to replace the walk animation file. As a result, the run animation will be
//played no matter how fast the player move.
...........
sequence35 = "./Adrag_root.dsq wrench"; //Also this playertype doesn't need wrench animation, so we just use the root animation file here.
...........
};
--- End quote ---