Results 1 to 2 of 2

Thread: income???

  1. #1
    Join Date
    Jul 2009
    Posts
    71

    income???

    So about income with programming. No I don't exactly mean how much you make, I'm working on a PBB RPG (Persistant Browser Based, Role Playing Game) and have had troubles when comming up to income.

    Now of course there will be an option where a user simply clicks a link and it will set their player to work for 8 hours or whatever, which after that time will provide an amount of currency for that time.

    Now another feature in the game is going to be allowing them to mine or harvest resources, This is where I am stuck. How exactly can i make it so that a user does not have to simply wait for an hour to havest 600 worth in crops? but for each occurring minute that passes they will have 60 worth in crops harvested? Any ideas on how to make this from static to dynamic?

  2. #2
    Join Date
    Dec 2009
    Location
    San Diego, California
    Posts
    161
    On page load, calculate how long it's been since the last harvest, then give the player his crops.

Similar Threads

  1. Replies: 0
    Last Post: 20 Sep 2009, 08:28 PM
  2. need web designer will pay x% of all income
    By assuredlonewolf in forum Job Offers
    Replies: 0
    Last Post: 21 Jul 2009, 11:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •