iDomerius
|
  |
| Joined: 12 Feb 2010 |
| Total Posts: 307 |
|
|
| 04 Jan 2015 08:27 PM |
| How could a gui prize wheel be coded. Like those wheels at the fair or whatever that give you prizes for whatever you land on. Prob pretty hard... the different prizes would have to be randomized too. kinda looking to do something like prize wheel on ios |
|
|
| Report Abuse |
|
|
|
| 04 Jan 2015 08:28 PM |
well I mean if you put a bunch of ImageLabels together and make the images look like part of the circle
and you use the Rotation property of the Frame they're all in
it works |
|
|
| Report Abuse |
|
|
iDomerius
|
  |
| Joined: 12 Feb 2010 |
| Total Posts: 307 |
|
|
| 05 Jan 2015 04:53 PM |
| how would ik which prize was chosen though x.x |
|
|
| Report Abuse |
|
|
|
| 05 Jan 2015 05:24 PM |
| You should learn more about scripting then you should do this, this is pretty hard. |
|
|
| Report Abuse |
|
|
BenyBoo7
|
  |
| Joined: 02 Jan 2012 |
| Total Posts: 557 |
|
|
| 05 Jan 2015 05:26 PM |
| First learn about basic GUIs scripting it then learn about rotating it |
|
|
| Report Abuse |
|
|
|
| 05 Jan 2015 05:45 PM |
While I agree with the others that this is PROBABLY a bit beyond your skillz at the moment, I'm gonna tell you the IDEA that I would use for this.
Have a GUI element with an image on. Every time the wheel is supposed to spin, a random, large number is chosen. The image will then rotated according to that number.
To find out which prize the players won, you would simply check the random number against some preset values. E.g: If the number is between 10 and 50, the player wins a banana. |
|
|
| Report Abuse |
|
|
CrowClaws
|
  |
| Joined: 04 Jul 2010 |
| Total Posts: 4466 |
|
|
| 05 Jan 2015 05:57 PM |
Lol This actually sounds pretty easy >.<
Make a random generator that chooses aranodm number between 1 and 360
Make it spin a few times then slow down then stop at random numve (rotation)
The spin would just be stritcly visible
If 1-10 do prize a if 11-20 do prize b or whatever
then just make a random generator and what prize |
|
|
| Report Abuse |
|
|