# Coins store example

**URL:** <https://community.thunkable.com/t/coins-store-example/310>\
**Category:** Promote your App\
**Tags:** database, socialmedia, design\
**Created:** [October 19, 2016, 9:55am UTC](https://community.thunkable.com/t/coins-store-example/310 "2016-10-19T09:55:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mika](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mika/32/5022_2.png) [@Mika](https://community.thunkable.com/u/Mika)\
**Post date:** [October 19, 2016, 9:55am UTC](https://community.thunkable.com/t/coins-store-example/310/1 "2016-10-19T09:55:28Z")

</div>

Hello everyone,  
i made this example because i see some users who want this in her apps.

That’s a very clean example to show you how a coints store works.  
In this example i don’t use a storage because it’s only a demonstration how it works.  
For games and other apps is a tinydb very usefull to store the number of coints and buyed features.

You have 100 Coints. Every Feature in this example needs 75 coints to be available.  
If you restart the app the number of coints get back to 100.

Screenshots:

 ![](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/1X/525e015f4368137cd66ea98f59b856c24021bfe1.png) ![](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/1X/3178f79ac81fc3f634795fe4761d40e2c0e929b7.png)

 ![](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/1X/afb33bdb2f014b438ec91d8946aea6c2ef39a531.png) ![](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/1X/00829ab3ab6288734b06e7b8ccfeadc5909f2959.png) ![](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/1X/97ee40c7f838c30e9c91e5d17d4f0cffb3ddd734.png) ![](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/1X/af9ae819ee4e35155ba90f01ae3415facc903c40.png)

  
[Download Coins\_Store\_Example (aia file)](https://sourceforge.net/projects/released/files/Coins\_Store\_Example.aia/download) [Download Coins\_Store\_Example (apk file)](https://sourceforge.net/projects/released/files/Coins\_Store\_Example.apk/download) [Example on my blog](http://nmd-apps.jimdo.com/tutorials-1/snippets/#27)  
best regards, Mika
* * *

[Tutorials, Snippets, Examples with source files (aia and apk) and much more available on my blog](http://nmd-apps.jimdo.com)

---

<div class="post-metadata">

**Author:** ![JARRKKKD](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jarrkkkd/32/3816_2.png) [@JARRKKKD](https://community.thunkable.com/u/JARRKKKD)\
**Post date:** [October 19, 2016, 4:27pm UTC](https://community.thunkable.com/t/coins-store-example/310/2 "2016-10-19T16:27:21Z")

</div>

THANK YOU  
So if I want the user to keep their “coins” all I have to do is set up a name for tinybd?

---

<div class="post-metadata">

**Author:** ![Mika](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mika/32/5022_2.png) [@Mika](https://community.thunkable.com/u/Mika)\
**Post date:** [October 19, 2016, 4:33pm UTC](https://community.thunkable.com/t/coins-store-example/310/3 "2016-10-19T16:33:33Z")

</div>

Yes. You must safe the number of coints in a tiny db and load the value of it when you open the app.  
You must also store the paid features.

In the example has the global variable of feature 1 after the paying process a “1”.  
You can store that value in a tinydb after the user paid it.  
and when the user opens the app you must load it from the tiny db

---

<div class="post-metadata">

**Author:** ![mari.bert2008](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mari.bert2008](https://community.thunkable.com/u/mari.bert2008)\
**Post date:** [April 6, 2021, 2:12am UTC](https://community.thunkable.com/t/coins-store-example/310/4 "2021-04-06T02:12:16Z")

</div>

Hi, could you show a Thunkable x example that works as the example that you showed in Thunkable classic?  
That would help me a lot. Thanks

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:07pm UTC](https://community.thunkable.com/t/coins-store-example/310/5 "2024-11-08T12:07:23Z")

</div>



---

<div class="post-metadata">

**Author:** ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)\
**Post date:** [December 19, 2024, 5:00pm UTC](https://community.thunkable.com/t/coins-store-example/310/6 "2024-12-19T17:00:34Z")

</div>


