Hi there!
This thread is coming from an old thread that I made about spinner's and while working on one (a spinner) I kind of got stuck.
What I'm trying to make is a horizontal spinner with different colored blocks (colors correspond to what type of prize you get like common, Rare etc.). Once a certain button is clicked, the block's spin around in a random order with a random speed and number to which color (block) the spinner is going to land on (Like, once a block has passed, the application spawns in another block on the other side to spin around but the block that is spawned is randomly chosen). The speed gradually decreases and once an X amount of blocks have passed the speed reaches zero and the spinner stops on the color (block) corresponding to the number that was chosen at the start.
So let's say if the X amount of blocks that were going to pass was 100, then the block that the spinner lands on would be 101.
So the 101st block spawned corresponds to the number that was chosen at the start.
Really, the spinner is like opening a case in cs:go.
Now the problem I'm having is getting the blocks that are spawning randomized every time once one block finishes it's spin and getting the spinner to land on the block that was chosen by the number at the start after X amount of blocks have passed while decreasing the speed at a smooth rate to make the slow down look pretty realistic.
If anyone could help me with this and possibly give me an example for me to take a look at to help me, that would be great!
If there is a need for more explanation, just let me know!