View Single Post
Deposits and Withdrawals...
Old
todd0312
Member
 
todd0312's Avatar
 
Status: Offline
Posts: 35
Join Date: Sep 2011
Default Deposits and Withdrawals... - 12-13-2011, 12:58 PM

Well, I am a noob, too, so if my advice is flawed, hopefully someone else will point out any said flaws.

What I do know is that you will need number variables for deposits, withdrawals, and balance. It would probably be a good idea to have separate methods for each. Create an event for each of these - so that when the user clicks on the words: balance, withdrawal or deposit, that method will be called.

Like GameKid wrote, you will need to use a world function to ask the player questions: yes/no, number or string (letter(s), words, etc).

I added some code to your project to ask the user how much they would like to withdraw when they click the text "Withdraw" and then print the answer - with a pretty long explanation of how I did it, so you can understand what GameKid was talking about a bit better.

Hope this helped a little.

Todd
Attached Files
File Type: a2w ATM.a2w (902.4 KB, 7 views)
   
Reply With Quote