Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wheel of Fortune

Status
Not open for further replies.

keen01

MIS
Nov 16, 2004
73
US
I'm tring to create a wheel of fortune type game. How do I script a wheel to spin at random speeds. I know a 360? spin in 5 sec will be slower than a 1020? spin in 5 sec. Then I want it to ease into the stop.
 
Did that make sense? I was tired when I wrote it. When a spin button is pressed I need the wheel to spin randomly say for 5 seconds and slow to a stop. Then when pressed again I need to get the wheels current location and spin randomly again.

I know I could fake it if need be, the first time the button is pushed the wheel spins 837 deg,. the second time it's pushed it spins 1294 deg., and so on. But I'd really like to learn the scripting for this.
 
cant you just generate a random number for the amount of spin and setinterval for the 5 sec delay
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top