Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > General > Gaming and Game Development

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-15-2001, 10:54 AM   #1
crasher11
Registered User
 
Join Date: Jul 2001
Location: singapore
Posts: 64
Default a tough question on controling the hit rate of prizes for a game

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
crasher11 is offline   Reply With Quote
Old 10-15-2001, 01:11 PM   #2
red penguin
[^\d\D]
 
red penguin's Avatar
 
Join Date: Jun 2001
Location: Brooklyn, NY
Posts: 3,253
Default

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?
__________________

komielan.com
red penguin is offline   Reply With Quote
Old 10-15-2001, 01:16 PM   #3
crasher11
Registered User
 
Join Date: Jul 2001
Location: singapore
Posts: 64
Default

so u want to see my fla files, how to i send u email?
crasher11 is offline   Reply With Quote
Old 10-15-2001, 01:32 PM   #4
red penguin
[^\d\D]
 
red penguin's Avatar
 
Join Date: Jun 2001
Location: Brooklyn, NY
Posts: 3,253
Default Grammar and spelling, my friend...

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.
__________________

komielan.com

Last edited by red penguin; 10-15-2001 at 01:36 PM..
red penguin is offline   Reply With Quote
Old 10-15-2001, 01:56 PM   #5
crasher11
Registered User
 
Join Date: Jul 2001
Location: singapore
Posts: 64
Default

ya, i agree, i'm very poor in my spelling. but anyway thanks for the help
Attached Files
File Type: zip game.fla.zip (25.1 KB, 217 views)
crasher11 is offline   Reply With Quote
Old 10-15-2001, 02:00 PM   #6
red penguin
[^\d\D]
 
red penguin's Avatar
 
Join Date: Jun 2001
Location: Brooklyn, NY
Posts: 3,253
Default

See what I can do later tonight...
__________________

komielan.com
red penguin is offline   Reply With Quote
Old 10-15-2001, 02:08 PM   #7
crasher11
Registered User
 
Join Date: Jul 2001
Location: singapore
Posts: 64
Smile

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".
crasher11 is offline   Reply With Quote
Old 10-15-2001, 02:13 PM   #8
red penguin
[^\d\D]
 
red penguin's Avatar
 
Join Date: Jun 2001
Location: Brooklyn, NY
Posts: 3,253
Default

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...
__________________

komielan.com
red penguin is offline   Reply With Quote
Old 10-15-2001, 04:49 PM   #9
tg
done
 
Join Date: Jun 2001
Location: portland, or
Posts: 8,048
Default

nice red pengiun pengie, and don't you teachers always correct spelling with red ink?
__________________
tg
---
what the hell was i thinking?
tg is offline   Reply With Quote
Old 10-15-2001, 07:20 PM   #10
red penguin
[^\d\D]
 
red penguin's Avatar
 
Join Date: Jun 2001
Location: Brooklyn, NY
Posts: 3,253
Default

ha!

I prefer orange...
__________________

komielan.com
red penguin is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Swapdepth using txt files and dynamic content for game. superbnerb ActionScript 1.0 (and below) 3 09-22-2004 08:27 PM
Hit test question - wheres the hit? reedy2k ActionScript 1.0 (and below) 3 08-05-2003 12:56 PM
Game "Time Delay" after question is answered kunafish Gaming and Game Development 1 07-29-2002 08:04 PM


All times are GMT. The time now is 08:48 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.