generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: GUI Prize Wheel

Previous Thread :: Next Thread 
iDomerius is not online. 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
ChiefDelta is not online. ChiefDelta
Joined: 05 Nov 2010
Total Posts: 13071
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 is not online. 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
MrNoobe123 is not online. MrNoobe123
Joined: 14 Nov 2014
Total Posts: 153
05 Jan 2015 05:24 PM
You should learn more about scripting then you should do this, this is pretty hard.
Report Abuse
BenyBoo7 is not online. 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
Fakecake777 is not online. Fakecake777
Joined: 19 Nov 2012
Total Posts: 441
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image