Computer Science Canada Rotating Picture in Wheel of Fortune Game |
Author: | miller6 [ Mon Jan 18, 2010 11:36 am ] | ||
Post subject: | Rotating Picture in Wheel of Fortune Game | ||
What is it you are trying to achieve? I want to spin the wheel, and stop it at a specified degree (dependant on how long the spin button is held down for). The specified degree willl determine which section of the wheel it will land it on, thus giving the score for the player. What is the problem you are having? I cannot figure out how to get the wheel to spin just for the duration of time. Describe what you have tried to solve this problem I've tried playing around with the variables, adding more for loops, and extending the array paramaters. Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
Please specify what version of Turing you are using 4.1.1 |
Author: | miller6 [ Wed Jan 20, 2010 11:08 am ] |
Post subject: | RE:Rotating Picture in Wheel of Fortune Game |
please help me |
Author: | Zren [ Wed Jan 20, 2010 2:46 pm ] | ||
Post subject: | RE:Rotating Picture in Wheel of Fortune Game | ||
After looking at only this...
We don't want it to always have to repeat a complete loop cycle, otherwise it will always land on the picture(35). Instead we want to ditch the for loop and manually increment and reset angle to 0 when it goes over 35. And on each loop cycle we need to check if the spin button is still pressed (Use Mouse.Where inside the loop instead of buttonwait). When it goes from clicked->not clicked, you could start a count of how many more spin cycles you go through (Randomness is best). Heck you could even slightly increse the delay between updates to make it appear it's slowing down. |