PDA

View Full Version : wheel of fortune



DashMasterful
December 4th, 2008, 09:07 PM
So I have this new game I'm working on. It is similar to Wheel of Fortune. Basically there is a big wheel in the center of the stage. I am going to have 16 small boxes located around the edge of the circle. I want to set it up so that the user can spin the wheel by grabing any one of the boxes and pulling them down, similar to Wheel of Fortune. I have created a concept drawing, it can be located here http://rebuiltjorge.com/concept.jpg
can anyone point me in the right direction

sekasi
December 4th, 2008, 09:42 PM
get dragspeed by comparing mouse position from previous tick with current. The speed will decide the rotation speed of the wheel. Once the wheel spins, give it a multiplier like 0.95 every frame. It will slowly slow down, once rotation speed is less than 0.1, remove it and tween to nearest blob. Get blob by checking the final rotation of the wheel compared to the 90 degrees of stopper arrow.

quite easy really :p

DashMasterful
December 5th, 2008, 07:05 AM
nice man I will check that out, thanks

Sentientv2
December 5th, 2008, 07:16 AM
As an added effect, you could actually drag the friction a bit when you reach the intervals that would represent the pegs on the wheel (just like in the real show). The slow the wheel is spinning, the greater the effect the drag has as there is less resistance.

You might want to invest in this book, http://www.friendsofed.com/book.html?isbn=1590597915. I suppose I can't speak exactly if this book has what you need to tackle this, but I know it contains lessons and examples on friction. I highly recommend this book. I was able to produce some really neat stuff (in less than 3 days a very good knock off of the game BumperStars on facebook, which uses billiard and pinball physics together).

DashMasterful
December 5th, 2008, 06:09 PM
yeah that is sweet, great idea, I will check out that book as well, thanks