A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [help] Mouse game, how can this be done

  1. #1
    Senior Member Gloo pot's Avatar
    Join Date
    Aug 2005
    Location
    Australia Mate!
    Posts
    874

    [help] Mouse game, how can this be done

    I am making a mouse game were you have to click the right mc within a certain amount of time...

    I have a MC with the varibale called box, a MC with the varible called tim, and a dyanmaic text box with the varible of scorer.

    Every 5 seconds the will box will change colour and once tim reaches its 60th frame the box changes colour again ( i coppied the box MC and gave them the varibles of s1,s2,s3,s4) if you click the right one your score gose up 1 and if u click the wrong 1 your score goes down 1.

    How could i make your score go down once tim reaches the 60th frame and you havnt clicked any of the boxes???

    I have attached a .fla to show what i mean if u didnt understand
    92.7 Fresh FM for all your South Aussies - Doof Doof music FTW people!

  2. #2
    Senior Member TeroLebe's Avatar
    Join Date
    Mar 2003
    Location
    Lahti, Finland
    Posts
    302
    Just put in the "60th frame" a little code:

    (if I remember right You used _root.score named variable as scores)
    _root.score -=1;

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