A Flash Developer Resource Site

Page 1 of 2 12 LastLast
Results 1 to 20 of 26

Thread: A car game half done

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

    Help with my Rpm Gauge!

    the car speed top goes to 200 km/h the rpm goes top 7 (rpm = rotation per min.) so im asking if some one could think up a script so when i press the button up or down the gauge goes about 3 or 4 then when the speed reaches 200 the rpm goess all the way to 7 then kinda slows and goes to 5 or 4.. the ending doesnt matter but what i need is so the rpm gauge goes to to the rotations then start coming down slowly when i let go of up or down
    Last edited by realplaya; 06-27-2005 at 01:09 AM.
    Haha you ate a bullet

  2. #2
    Senior Member
    Join Date
    Jun 2005
    Location
    Chicago
    Posts
    174
    I kinda understand, but could you elaborate. What do you mean with you say the "gauge goes abour 3 or 4"... Could you post a swf animation of what you are trying to accomplish? The code for this is relatively easy... you could do it using a simple onEnterFrame loop. Anway let me know and I might be able to help you out.

    ciao,
    sam
    http://www.levelofindustry.com

  3. #3
    CS:S (USER ) ŞњΪŦ Ǒƒ ₣أҐέ
    Join Date
    Jun 2005
    Location
    WI
    Posts
    25
    ok ill post a quick mc, i didnt use any AS
    Attached Files Attached Files
    Haha you ate a bullet

  4. #4
    Senior Member
    Join Date
    Jun 2005
    Location
    Chicago
    Posts
    174
    realplaya,

    Great. I'll take a look and have something for you later on tonight

    -sam
    http://www.levelofindustry.com

  5. #5
    CS:S (USER ) ŞњΪŦ Ǒƒ ₣أҐέ
    Join Date
    Jun 2005
    Location
    WI
    Posts
    25
    ok
    Haha you ate a bullet

  6. #6
    Senior Member hum's Avatar
    Join Date
    Sep 2003
    Location
    CloudCuckooland
    Posts
    1,714
    Hi
    Hope you dont mind me having a go at this also Samuel.....
    Something like this RealPlaya...?

    EDIT:
    Attachment updated below...
    Last edited by hum; 06-28-2005 at 04:04 PM.

  7. #7
    CS:S (USER ) ŞњΪŦ Ǒƒ ₣أҐέ
    Join Date
    Jun 2005
    Location
    WI
    Posts
    25
    something like that.... maybe a bit smoother, i mean when you press up in the middle it has to go to some check point, when i made that swf it was just showing if i press up or down the rpm would bounce depending on the speed it was going on ill show you my fuel gauge and speedometer. just check those and tell me how you could kinda fit this gauge in there (make it work to look like they all are the same)
    Attached Files Attached Files
    Haha you ate a bullet

  8. #8
    Senior Member hum's Avatar
    Join Date
    Sep 2003
    Location
    CloudCuckooland
    Posts
    1,714
    hi
    Post or email the fla you have of the fuelgauge and speedometer and i'll have a go at incorporating it if you like.....

  9. #9
    CS:S (USER ) ŞњΪŦ Ǒƒ ₣أҐέ
    Join Date
    Jun 2005
    Location
    WI
    Posts
    25
    i did, there up there the file is gauges.zip
    Haha you ate a bullet

  10. #10
    Senior Member hum's Avatar
    Join Date
    Sep 2003
    Location
    CloudCuckooland
    Posts
    1,714
    Hi
    The zip only contains the swf......

  11. #11
    CS:S (USER ) ŞњΪŦ Ǒƒ ₣أҐέ
    Join Date
    Jun 2005
    Location
    WI
    Posts
    25
    oh you wanted the fla sure keys are up and down
    Haha you ate a bullet

  12. #12
    Senior Member hum's Avatar
    Join Date
    Sep 2003
    Location
    CloudCuckooland
    Posts
    1,714
    Hi
    No no!........the fla is the actual Flash File you are working from.....
    with the red icon.......not the swf.....that is the finished movie you are sending......

  13. #13
    CS:S (USER ) ŞњΪŦ Ǒƒ ₣أҐέ
    Join Date
    Jun 2005
    Location
    WI
    Posts
    25
    i knwo didnt i post it up there nvm ill post it now
    Attached Files Attached Files
    Haha you ate a bullet

  14. #14
    Senior Member hum's Avatar
    Join Date
    Sep 2003
    Location
    CloudCuckooland
    Posts
    1,714
    Hi
    Try this.........
    EDIT:Attachment updated below.....
    Last edited by hum; 06-28-2005 at 04:01 PM.

  15. #15
    CS:S (USER ) ŞњΪŦ Ǒƒ ₣أҐέ
    Join Date
    Jun 2005
    Location
    WI
    Posts
    25
    sooo close almost perfect just when you let go of up or down it goes down faster
    Haha you ate a bullet

  16. #16
    Senior Member hum's Avatar
    Join Date
    Sep 2003
    Location
    CloudCuckooland
    Posts
    1,714
    Hi
    Here ya go......this should do it...

    EDIT:Attachment updated below.....
    Last edited by hum; 06-28-2005 at 04:33 PM.

  17. #17
    CS:S (USER ) ŞњΪŦ Ǒƒ ₣أҐέ
    Join Date
    Jun 2005
    Location
    WI
    Posts
    25
    eh, good enough could you send me the code or the .fla
    Haha you ate a bullet

  18. #18
    Senior Member hum's Avatar
    Join Date
    Sep 2003
    Location
    CloudCuckooland
    Posts
    1,714
    Hi
    Yeah sure....just check this first....ive tightened it up even more.....

  19. #19
    CS:S (USER ) ŞњΪŦ Ǒƒ ₣أҐέ
    Join Date
    Jun 2005
    Location
    WI
    Posts
    25
    ok .... could i get the code though
    Haha you ate a bullet

  20. #20
    Senior Member hum's Avatar
    Join Date
    Sep 2003
    Location
    CloudCuckooland
    Posts
    1,714
    Ive just emailed the working .fla to your hotmail account...
    Enjoy...

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