Sign in to follow this  
Guest andy342

Speed Bugs

Recommended Posts

Hi all, first of all I have no experience in programing but today I managed to program/copy/paste a simple airspeed indicator in xml. What I didn't manage, even after reading many many threads and faq's here and reading lots of code of other gauges is to add some three speed bugs. I don't know why but it didn't work out. Could anyone of me help me on with this problem. I thought about defining a variable (G:var1) and add one knot to it everytime the user clicks on a clickspot on the gauge. thanks in advance andyP.S.: If someone needs the gauge as it is right now, just tell me

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hi,You can use:(G:Var1) 1 - 0 max (>G:Var1)and(G:Var1) 1 + 450 min (>G:Var1)So between 0 and 450 knots.You can change that numbers.Let the bug rotate like the airspeed needle, but depending of (G:Var1)(G:Var1)Hope it helps,Jan"Beatus ille qui procul negotiis..."

Share this post


Link to post
Share on other sites

Yes, that's exactly what I wanted, thank you. So easy and yet so difficult ;-)andy

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