A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Need a coder for fuel gauge

  1. #1
    CS:S (USER ) ŞњΪŦ Ǒƒ ₣أҐέ
    Join Date
    Jun 2005
    Location
    WI
    Posts
    25

    Need a coder for fuel gauge

    .....could anyone give me a script for a fuel gauge i want it to work something like when you press up the fuel meter starts going down from f to e but pretty slowly, or in the actionscript you could just type (// change speed here < > ^) ... i have attached the needle and the fuel meter... Please if anyone could do this i will be very greatful.
    Attached Files Attached Files

  2. #2
    Senior Member
    Join Date
    Apr 2004
    Posts
    325
    I cant do it for you but just make it so the needle is a movie clip (if it isent already)
    and attach this code
    onClipEvent (enterFrame) {
    if (Key.isDown(Key.UP)) {
    this._rotation -= .5
    }
    }

    I think thats right, I just typed the action script so it may have a simple error somewhere.

  3. #3
    CS:S (USER ) ŞњΪŦ Ǒƒ ₣أҐέ
    Join Date
    Jun 2005
    Location
    WI
    Posts
    25
    one more thing umm.... it will be a bit small as this one but it will be for the rpm gauge could you tell me the script so it goes from number 0 to 7 then goes back when you release up or down so when you press it, it goes towards 7 and gains it to like 3 or 5
    but it has to stop at 0 and 7
    Last edited by realplaya; 06-23-2005 at 11:25 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center