How to make a spinwheel (like Wheel of Fortune)?

Get help using Construct 2

Post » Mon Dec 03, 2012 8:06 am

Hey all,

I'm trying to make a spinwheel like Wheel of Fortune, where the wheel is in the middle with several pegs around the edges. As the pegs hit the rudder I want to slow the rotation. I haven't gotten that far though as I can't for the life of me get the rudder to work properly. I want it so the pegs will just push past the rudder, which will snap back into place. What I have so far is a rudder that spins too far and also gets stuck in the hinge.

Capx:
https://www.dropbox.com/s/b4zj3epzw13ensm/spinwheel.capx

I am really not good with physics and have tried this is several ways. Maybe there is a better/easier way to do it without physics, but right now I'm coming up with blanks. Any ideas would be appreciated!
B
27
S
8
G
5
Posts: 429
Reputation: 6,902

Post » Mon Dec 03, 2012 12:12 pm

This is something I personally wouldn't use physics for. Get an image of the wheel with pegs, and an animation of the peg flicking. position them properly then you will be able to set up a formula which takes angular position, number of pegs, and wheel radius into account to make the peg flick at the right moment. Don'thave time to work out the formula right now but mention me with @sqiddster and I'll help you work it out if this math isn't your strong point.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Mon Dec 03, 2012 1:39 pm

Alrighty, thanks mate. I'll try a dabble myself, but I expect you'll be called upon - thanks for the offer!
B
27
S
8
G
5
Posts: 429
Reputation: 6,902

Post » Tue Dec 04, 2012 4:02 am

I remember seeing a sample capx floating around a few months back called "wheel of misfortune" or something. It used a physics object and the pointer as a joint I think.
B
34
S
8
G
3
Posts: 328
Reputation: 7,692

Post » Tue Dec 04, 2012 11:51 am

Thanks @Eyehawk! I found it here: http://www.scirra.com/forum/wheel-of-fortune_topic49399.html

I think I can combine one of those methods with some of Sqiddster's advice and come up with something that suits my needs.
B
27
S
8
G
5
Posts: 429
Reputation: 6,902

Post » Tue Dec 04, 2012 4:37 pm

Oh wow this is awesome. Thanks for the thread and thanks for the link to the the physics version. I wanted to throw a spinning wheel or some slot machine in my game and now I'm all set and know that the wheel is the wheel to go.
B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834


Return to How do I....?

Who is online

Users browsing this forum: Zakeru and 24 guests