This site requires JavaScript, please enable it in your browser!
Greenfoot back
chrl98
chrl98 wrote ...

2014/1/9

How to make a basic in-game store?

chrl98 chrl98

2014/1/9

#
Basically, there will be a picture assigned to different upgrades, and the pictures will be organised into a clear layout. When the user clicks on one of these pictures, the amount of money that the player has will be deducted by the amount of money that the upgrade costs. Will someone be so kind as to guide me through this process, since I do not know where I will need to put references into the different classes. Thanks. I also have no code for the store yet.
davmac davmac

2014/1/9

#
I recommend you start to try and write the code for one of these "upgrade buttons" and see if you come across any problems. If you do, you can ask here. (The question as you've written it is a bit too broad).
You need to login to post a reply.