- Messages
- 189
- Country

Hello !
I'm using the code below for my altimeter's longer needle, which shows hundred meters. Part name is in hungarian, it's mean "needle_altimeter_100".
This code working fine in the 0-10.000 meter range, but I need to start the range from -300 meters. I tried the following codes :
or
Also, I set the 0. frame in animation to -300 meter mark, made keyframes in every 10th ticks, until the 100. frame. 100 frames fit for one revolution.
The problem : when the plane climbs, the needle stops after one revolution, and it will jump to the 0 meter mark, and continue to revolve again, and so on...
What's wrong in my logic?
I'm using the code below for my altimeter's longer needle, which shows hundred meters. Part name is in hungarian, it's mean "needle_altimeter_100".
Code:
<PartInfo>
<Name>mutato_magassag_100</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>(A:INDICATED ALTITUDE:1, m) 10 / 100 % </Code>
</Parameter>
</Animation>
</PartInfo>
This code working fine in the 0-10.000 meter range, but I need to start the range from -300 meters. I tried the following codes :
Code:
<PartInfo>
<Name>mutato_magassag_100</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>(A:INDICATED ALTITUDE:1, m) 10 / 100 % [COLOR="Red"]30 +[/COLOR] </Code>
</Parameter>
</Animation>
</PartInfo>
or
Code:
<PartInfo>
<Name>mutato_magassag_100</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>(A:INDICATED ALTITUDE:1, m) [COLOR="red"]300 +[/COLOR] 10 / 100 % </Code>
</Parameter>
</Animation>
</PartInfo>
The problem : when the plane climbs, the needle stops after one revolution, and it will jump to the 0 meter mark, and continue to revolve again, and so on...
What's wrong in my logic?
