Set product ID ( unique name )
Give your product a name ( The name of your game )
Set price
Type of product:
Entitlement ....... means you can only buy it once
Consumable ........ means it can be used as many times as you want ( example buy items or extra levels )
Once you are done setting up your product
Make sure you have the OUYA object added
create a new condition
Start of Frame. Then right click under the ouya object and select Initialize API ( ignore system double tap, that's just to exit the system properly)
Enter your developer ID
When you click okay, it will ask you for the key.der
--------------------------------------------------------------------------------------------------
Here is where you get your Developer ID ( Dev ID )
This how you download your key.der, make sure you right click as save as... key.der
Now, click on new condition. Right Click on the OUYA object and pick " On API Initialized "
( this step is not necessary but it's a good idea to display if the API has started )
You can type anything you'd like here. (Remember you need to add a text string for this step)
Now, Right click under the OUYA object and select Set Product
and type the product name
Now that the product is selected, it's time to buy it.
If the user presses Y the product will be bought.
Insert a condition so the product can only be bought if counter = 0
Again, make sure you have a counter added. The expression should look like this
If the user already has the product the counter will be set to 1 ( so they can't buy it again or you remove the purchase option )
New condition. Select API. Does player have product?
and if the player has the product, you set the counter to 1 as shown in this pic
Okay you are done. That is all you need to make an in-app purchase in Fusion.
Okay. Let's test it on the OUYA.
Export your .APK and load it to your OUYA. Via USB STICK, FTP...Dropbox or whatever means.
if the API starts correctly you will see the string you entered. In this case it is: WHOOT WHOO API STARTED -
Press Y to buy the product, when you press Y it should look like this.
Buy your product( Don't worry OUYA doesn't charge you for buying your own products, you can delete the purchase at anytime)
Now the counter is set to 1, so you cannot buy the product again. or you can use the number to remove the purchase option.
(consumables can be bought as many times as you want and you won't need a counter)
Check that the transaction - and Boooom - you are done!
Enjoy.
Here is the finished product.
( remember to change the product ID and import your key )
Have you tried selling anything on OUYA?
How have sales been?
I know the OUYA hasn't had great reception after launch, so I'm just wondering if it would be worth it to me.
I might launch Rodent Rush on the platform if so.
Well I'm on their mailing list, and Google+ page and seems like they're begging for more developers.
Also if you read comments from around the web most users aren't happy with the device.