Need help with setting up shop system.

I am trying to make a shop system but i am literally stumped on what to do.

I attached a sample project to make it easier for you guys to help:

https://ufile.io/rsti8

What I am trying to do

Basically in the home page there is a picture of a home.

In the shop page there is 4 pictures of homes.

Below each of them there is a buy button.

When you click on buy, you own the home.

If you go back to the home page, the picture of the home is shown.

If you buy more than 1 home, you can select which home you want to display on the home page.

What I have

I have added the 4 pictures of the home in the shop page with their buttons below (not setup as widgets.) (they also dont do anything)

I have a picture of a home on the home page.

And I have function buttons going to the shop/home page.

Problem

I basically dont know what to do from here.

I was going to a event listeners to the buttons but probably I will have to make the buttons into widgets first.

Anybody know what to do?

Attached again is the lua files and image files to make it easier for you.

https://ufile.io/rsti8

Please help!

Sincerely 

John Beluga

By the way, here is a clear up,

For this example, I don’t need to have the program to check whether player has sufficient money.

Also I will not need to setup in-app purchases for this.

Seriously, does no one know how to do this?

Lots of us know how to do it, but it’s  a bit of work, and describing how is a lot of work.  I think we’re all just busy working on our own projects.

You might want to post a job listing and ask someone to make you a prototype or something to that effect.

PS - The fact that you supplied a zip with a starter project/sample is awesome.  

So, I will take a look when time allows, but I’m personally strapped right now. :frowning:

I had some time and your request seemed simple so here is the project:

Your requests were not complete anyway. For example I do not know if you want to save this data for another access. for sure I did it.

In theory, once bought the house you should not be able to buy it anymore, but neither did you ask, so I thought you could buy it more times.

I tried to comment on the most important steps and added two files “FileManager” and “homeDat.lua”.

I apologize, however, for my bad English (I’m not a native speaker).

If you have other problems maybe you should do as advised @roaminggamer  and pay someone.

Naturally I do not want to be paid. Maybe you could watch my game and spread the word if you like it ;).

My game: http://beattheair.altervista.org/site/index.html. I will update the game with global rankings and new modes between today and tomorrow.

Looks like maximo has you covered. 

@maximo Thanks a bunch! You are the best! Thanks for all your help And I shared the link

@BelugaWhale

You’re too kind, thanks to you too!

By the way, here is a clear up,

For this example, I don’t need to have the program to check whether player has sufficient money.

Also I will not need to setup in-app purchases for this.

Seriously, does no one know how to do this?

Lots of us know how to do it, but it’s  a bit of work, and describing how is a lot of work.  I think we’re all just busy working on our own projects.

You might want to post a job listing and ask someone to make you a prototype or something to that effect.

PS - The fact that you supplied a zip with a starter project/sample is awesome.  

So, I will take a look when time allows, but I’m personally strapped right now. :frowning:

I had some time and your request seemed simple so here is the project:

Your requests were not complete anyway. For example I do not know if you want to save this data for another access. for sure I did it.

In theory, once bought the house you should not be able to buy it anymore, but neither did you ask, so I thought you could buy it more times.

I tried to comment on the most important steps and added two files “FileManager” and “homeDat.lua”.

I apologize, however, for my bad English (I’m not a native speaker).

If you have other problems maybe you should do as advised @roaminggamer  and pay someone.

Naturally I do not want to be paid. Maybe you could watch my game and spread the word if you like it ;).

My game: http://beattheair.altervista.org/site/index.html. I will update the game with global rankings and new modes between today and tomorrow.

Looks like maximo has you covered. 

@maximo Thanks a bunch! You are the best! Thanks for all your help And I shared the link

@BelugaWhale

You’re too kind, thanks to you too!