View Full Version : a tough question on controling the hit rate of prizes for a game

10-15-2001, 09:54 AM
i have come out with a game using flash just like the wheel of forture.
when the start button had been press, it will go round the wheel and stop radomly on a prize. the problem is how can i control the hit rate for a particular prize, eg: prize 1 can only hit five times. prize 2 can hit upto 10 times and make prize 3 can only hit 1 time and also very hard to get it.

(please show me how the script should be wriiten because i'm not very good in it) thanks.

the game can be view at this site : www.giordano.com.sg/games.swf

red penguin
10-15-2001, 12:11 PM
First off, you have the same odds of hitting a one time prize as a ten time prize so that would be technically cheating the player their true odds!:)

But to control the amount of times, just have a variable update each time it is hit and then you will have to have a maxHit for each prize. If they are equal then it won't be able to land there!...

as for some code, I think we'd have to see how you have all this set up, eh?

10-15-2001, 12:16 PM
so u want to see my fla files, how to i send u email?

red penguin
10-15-2001, 12:32 PM
I'm an English teacher and these things are purely second nature for me...

1. "located IN the middle"
2. "automatically"
3. "fill in your PARTICULAR" -what?
4. "restriction ON"
5. "are only allowED to..."
6. "multiple entree" -?? If you enter the same prize twice...
7. "will be disqualifIED"

You can post your FLA here and then I can download it. It must be ZIPped, though.

10-15-2001, 12:56 PM
ya, i agree, i'm very poor in my spelling. but anyway thanks for the help

red penguin
10-15-2001, 01:00 PM
See what I can do later tonight...

10-15-2001, 01:08 PM
thanks. just to tell u wat i want again, the prize "30% discount coupon" can only hit 5 times and not easily been hit, and the "20%" can only be hit 10 times, "10%" 50 times and the rest is "please try again".

red penguin
10-15-2001, 01:13 PM
It's always what I want, isn't it?

I want to understand the difference between creating an object and then placing a method to that object and creating a prototype.

Can you give me some code and explanation please?

Just venting some frustrations, that's all...

10-15-2001, 03:49 PM
nice red pengiun pengie, and don't you teachers always correct spelling with red ink?

red penguin
10-15-2001, 06:20 PM

I prefer orange...
:confused: :D :)