Tutorial: Spinning Wheel


when i fill with these keys and keyfile and service account email then error accrued please check sir


Why dont you show your blocks and tell what you want to achieve.


simply check this .AIA file when i import and build in apk it same type of error pop-up. what should i do?


this is your team making aia file you can check it by build apk same error pop up


I added a FusionTableControl Component and was able to compile the WheelOfFortune_FREE.aia


sir check it.
its your aia file, nothing change in it


sorry sir i have mistake
its not wheel fortune its secure daily task project



@usmanali2663 I think there was an issue on that .aia file. I just replaced it with a new version that should compile. Get the updated one from here:


hi pixi how would I put the example for a LOT POINTS, which is a number of firebases but only 1% chance of winning. please :slight_smile: thanks


Sorry, I don’t quite understand your question.

But I think you’re asking for a 1% probability for the user to gain a large amount of points.

If you watched the tutorial, you may remember me saying that

  • The spinning wheel image is a fixed size (300x300 pixels)
  • To recognize the winning slice, I had to create an if/else statement for every possible outcome (This is based on the speed, size of image, and heading)

Since the Spinning Wheel is fixed that means you have to be creative with your rewards.
The tutorial shows the most basic example using a number system, but you don’t have to use a number system.

You could take the image and create icons or words instead of numbers.
In the tutorial, the Number 1 is the most rare slice, as such, the prize amount was increased if the user happened to land on that slice.

So, you could change Slice 1 to say RANDOM SURPRISE! (use your image editing software).
In the free tutorial, the getResult procedure would just output the Slice the user landed on.
Instead of showing “Result = 1”, you could create a probability condition.

Generate a random number from 1 to 100. If the random number = 1, the user gets a Super Rare Prize.
If the user does not get a 1 (any number from 2-100)
(This happens “behind the scenes”. The user won’t see this happening)

And in your final version of course, you wouldn’t have a simple label that says “user wins a special prize”. You would need to add the blocks that connect your user’s points with your database.


Welcome back PixiiBomb .After so many days we see your post .and we hope you will create some more tutorial.Thank your Memory Game is awesome.


Thanks Khulasa :heart_eyes::star_struck:


Ok, thanks so much. I want ask you something, i cannot make refferal sistem. I do everything, but i after when someone insert refferel nobody recive coins. How can i do this, please:)


Please create a new topic and provide screenshots of what you have tried.


First apologize for my English, I am using the Google translator.

I downloaded the WheelOfFortune_FREE.aia, but when I installed the apk on my smartphone, the turns only work the first time I use the application, if I close the application and reopen it, the turns do not work. I have to delete data from the application so that the turns work again.

Any solution to this?

I would greatly appreciate it, I am very new to this.


I just realized that when the roulette does not rotate, if you exit the application with the home button (not with the retrucess button / close application) and you re-enter, the roulette does rotate, but if you close the app and return it to open as any other application do not work the turns.


Hello Joanshe,

The problem is that when I make these tutorials - they always work (otherwise, I wouldn’t release) :stuck_out_tongue: So when someone downloads one of my tutorials and says “it doesn’t work”… I can’t see what they’re seeing.

I can’t see what you’ve added or changed.
I don’t know if you’re using extensions.
I don’t know if there are additional blocks on the screen from another tutorial that would prevent the app from working.

If the ONLY thing you have on the screen is what I’ve given you from the tutorial, it will work perfectly fine. (Unless you’re using any tutorial with Fusion Table/Firebase - then you should NOT be using the Fusion/Firebase from the tutorials. You should be using your own Fusion/Firebase/Database)

I would suggest going through the blocks from the tutorial and double checking what you have in the aia. I would also suggest learning the blocks you are using. Go through them, line by line. Read them. Make sure there are no mistakes.

A lot of times, it’s something really simple, like you accidentally selected componentB, when you meant to select componentA.


Thanks for answering.

From your project I have not edited anything, it is as I downloaded it.
I loaded it into Appybuilder, compiled the apk and installed it on my device.

I’ve gone around a lot checking the blocks and I do not find anything strange.

It is very strange what happens, the wheel only rotates the first time after installation, or if when I turn to leave the app with the home button and re-enter.

I am trying to learn in Appybuilder and therefore I download projects to try to understand how they are made.


Can I as a developer change the spinning wheel numbers slices to pictures?
I mean pictures that I as a developer can pass with time to users to pick and play with?


The wheel is just one big png image, with a transparency on the corners to let the background show and look like a wheel.
So keeping that in mind it would be easier if you edit the picture of the wheel in a program like Photoshop or Gimp (somehow similar to Photoshop but free) and add the pictures by hand, replace it in the app and update the up.

If not, you will need to use very complex graphics calculation to keep all the images (probably using sprites) rotating in a circular way to imitate the wheel. I’m sure some of them will be ok, but your app will become a lot slower as you keep adding more sprites, because the calculations needed are not simple.