A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: [CS3] Looking for a tutorial / sample Wheel of Fortune

  1. #1
    Senior Member
    Join Date
    Jan 2001
    Posts
    524

    [CS3] Looking for a tutorial / sample Wheel of Fortune

    I am looking for a tutorial or sample fla for something similar to Wheel of Fortune. Basically, I want a wheel ( like a roulette wheel ) where the user will spin it, and whatever they land on it will then forward them to the appropriate part of the MC/SWF. For example, if they spin the wheel and the wheel ends on $5 then they will be sent to Frame Label fivedollar where they will be given instructions on how to claim their prize.

  2. #2
    Junior Member
    Join Date
    Apr 2008
    Posts
    11
    I'm also looking for something like this. It's not hard to rotate a movie clip, but to add hitboxes to it is another story.

  3. #3
    ASs 2.0
    Join Date
    Feb 2003
    Location
    Istanbul / Turkey
    Posts
    140
    same here... I'm also lookin for something like this...

  4. #4
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    what part is it you guys are having the trouble with?

    here is a quick example I made years ago to explain a simple hitTest();


    however.. I think maybe for your project..

    start by putting all the section names into an array:

    var choiceArray:Array = ["5Dollar", "100Dollar", "Bankrupt", "FreeTrip"];

    etc..etc..


    I would then use a TWEEN instance to rotate the 'wheel' with some easing on it.. to slow it to a stop...

    then when tween.complete executes/fires you can run through your array of clip names to see if it is hitTest() on any of them and if so.. do whatever it is you need done. (go to the appropriate frame label)
    Attached Files Attached Files

  5. #5
    Junior Member
    Join Date
    Apr 2008
    Posts
    11
    Thanks, I'll give it a look-see. I've alreay got a wheel spin demo I've adapted, but the detection on it was being funny last time I checked.

  6. #6
    Junior Member
    Join Date
    May 2012
    Posts
    1
    Hi Whispers, Is it possible that you can please contact me privately. Thank you very much in advance.

  7. #7

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