Jump to content
Sign in to follow this  
Guest bones

Sequential bitmaps?

Recommended Posts

Guest bones

Can a Click event be used to trigger more than one bitmap? For a spring loaded switch (self centering) could the click trigger a switch down bitmap followed, a second later, by the switch moving back to center?

Share this post


Link to post
Share on other sites

Sure, but if you're talking about a spring-loaded switch, you'd probably want it to go back to the original bitmap on a mouse release, rather than some kind of timer. (L:Switch Position, bool)(M:Event) 'LeftSingle' scmp 0 == if{ 1 (>L:Switch Position, bool) }(M:Event) 'LeftRelease' scmp 0 == if{ 0 (>L:Switch Position, bool) } (M:Event) 'Leave' scmp 0 == if{ 0 (>L:Switch Position, bool) }The "Leave" event may or may not be necessary depending on how you would want the switch to operate.--Jon

Share this post


Link to post
Share on other sites
Guest bones

Thank you Jon - and you are right about returning to the original bitmap.The gear lever on some aircraft returns automatically to the centre position once the gear is up or down - effectively to stop the hydraulic system from continually pushing fluid around the system at high PSI. All I was trying to do was click the gear lever, have it show my selection and then, fractionally later, return to the default position. I'll give your code a try.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...