• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FS2004 Making a Bitmap/Element 'slide' slowly

Messages
10,158
Country
us-arizona
Hey all,

Im making a gauge item in an HSI. Its a Flight Director. When off, its hidden. When I turn on Flight Director, the two triangles should slowly move up to their position from behind the bezel face.

How might one make a Element 'slide' slowly? I do not want it to blink up there. I want that cool Swiss movement.
 
Hello Bill

For a 2D gauge:
Perhaps using a timer? Lets say the LVar is named L:Flight_director_timer, seconds, you read time with this variable and depending on its value and -in some way- you set a "case" statement using several images to emulate a "short film". I never done it before; however it's a "working idea". :duck: :duck: :duck:

The wiki for universal timer:
http://www.fsdeveloper.com/wiki/index.php?title=XML:_Macros_-_Universal_Timer

I hope this may enable your wonderful mind to implement a solution.
All the best,
Sergio.
 
This is code for an oxygen blinker. This was done before I fully developed the oxygen system on the VC10. So it's a bit crude bit it worked!
I don't use it now.
Code:
<Gauge Name="Oxygen Flow Indicator" Version="1.0">
   <Image Name="oxy_flow_indicator_bg3.bmp"/>
   <Element>
      <Position X="15" Y="43"/>
      <Image Name="oxy_flow_indicator3.bmp" Luminous="1"/>
      <Shift>     
        <Value>(L:OxyFlow,number) 0 &gt; if{ 2 (A:Fuel total quantity,gallons) 0 &gt; (A:Indicated Altitude,feet) and
if{ (P:Local time,seconds) 2 % } } els{ (A:Fuel total quantity,gallons) 0 &gt; (L:Cabin_Alt_Ind, number) 10000 &gt; and
if{ (P:Local time,seconds) 2 % } } </Value>
         <Nonlinearity>
            <Item Value="0" X="11" Y="63"/>
            <Item Value="1" X="11" Y="45"/>
            <Item Value="2" X="11" Y="63"/>
         </Nonlinearity>
      </Shift>
   </Element>
   <Element>
      <Position X="0" Y="58"/>
      <Image Name="oxy_flow_indicator_cover3.bmp"/>
   </Element>
   <Mouse>
      <Tooltip ID="">Oxygen Flow Indicator</Tooltip>
   </Mouse>
</Gauge>
 
Back
Top