489
edits
Script 10k (talk | contribs) |
Script 10k (talk | contribs) (→Example: changed example xml file) |
||
Line 404: | Line 404: | ||
Let's say you want to invert the helicopter animation from Oni's final level. If you notice in that level the helicopter comes from down to above to reach the compound higher spot then it goes down again. If we invert the helicopter animation it will come from above to down and then to above again (which what was did in Old China mod). | Let's say you want to invert the helicopter animation from Oni's final level. If you notice in that level the helicopter comes from down to above to reach the compound higher spot then it goes down again. If we invert the helicopter animation it will come from above to down and then to above again (which what was did in Old China mod). | ||
For simplicity we will only edit one part of the helicopter animation: ' | For simplicity we will only edit one part of the helicopter animation: 'heli_interior09' and its Translation (position) element. Please note that to invert correctly the animation you will need to invert Rotation element too. | ||
'''XmlTools command:''' | '''XmlTools command:''' | ||
<pre>XmlTools --invert-elements --element-name "Translation" --files " | <pre>XmlTools --invert-elements --element-name "Translation" --files "OBANheli_interior09.xml"</pre> | ||
{| style="margin: 1em auto 1em auto;" <!-- Centers table --> | {| style="margin: 1em auto 1em auto;" <!-- Centers table --> | ||
Line 419: | Line 419: | ||
<OBANKeyFrame> | <OBANKeyFrame> | ||
... | ... | ||
<Translation><span style="color:blue">- | <Translation><span style="color:blue">-184.349075 1312.973 -3162.01733</span></Translation> | ||
... | ... | ||
</OBANKeyFrame> | </OBANKeyFrame> | ||
<OBANKeyFrame> | <OBANKeyFrame> | ||
... | ... | ||
<Translation><span style="color:blue">- | <Translation><span style="color:blue">-184.330032 1336.40686 -3162.01978</span></Translation> | ||
... | ... | ||
</OBANKeyFrame> | </OBANKeyFrame> | ||
Line 435: | Line 430: | ||
<OBANKeyFrame> | <OBANKeyFrame> | ||
... | ... | ||
<Translation><span style="color:blue">- | <Translation><span style="color:blue">-185.234482 1465.60852 -3060.43579</span></Translation> | ||
... | ... | ||
</OBANKeyFrame> | </OBANKeyFrame> | ||
<OBANKeyFrame> | <OBANKeyFrame> | ||
... | ... | ||
<Translation><span style="color:blue">- | <Translation><span style="color:blue">-185.233032 1465.56641 -3060.47461</span></Translation> | ||
... | ... | ||
</OBANKeyFrame> | </OBANKeyFrame> | ||
Line 457: | Line 447: | ||
<OBANKeyFrame> | <OBANKeyFrame> | ||
... | ... | ||
<Translation><span style="color:red">- | <Translation><span style="color:red">-185.233032 1465.56641 -3060.47461</span></Translation> | ||
... | ... | ||
</OBANKeyFrame> | </OBANKeyFrame> | ||
<OBANKeyFrame> | <OBANKeyFrame> | ||
... | ... | ||
<Translation><span style="color:red">- | <Translation><span style="color:red">-185.234482 1465.60852 -3060.43579</span></Translation> | ||
... | ... | ||
</OBANKeyFrame> | </OBANKeyFrame> | ||
Line 473: | Line 458: | ||
<OBANKeyFrame> | <OBANKeyFrame> | ||
... | ... | ||
<Translation><span style="color:red">- | <Translation><span style="color:red">-184.330032 1336.40686 -3162.01978</span></Translation> | ||
... | ... | ||
</OBANKeyFrame> | </OBANKeyFrame> | ||
<OBANKeyFrame> | <OBANKeyFrame> | ||
... | ... | ||
<Translation><span style="color:red">- | <Translation><span style="color:red">-184.349075 1312.973 -3162.01733</span></Translation> | ||
... | ... | ||
</OBANKeyFrame> | </OBANKeyFrame> |
edits