playMaker

Author Topic: more than 10 digits in unity[SOLVED]  (Read 2360 times)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
more than 10 digits in unity[SOLVED]
« on: June 07, 2015, 11:25:51 AM »
hi,

i have a score system that runs up very fast in later levels
and should have more than 10 digits but unity does not go higher than 10 digits.

the score system works similar like this game : Cookie Clicker

also thing to buy will be deducted from that score. similar from Cookie Clicker

any suggestions are very welcome.
« Last Edit: June 09, 2015, 01:34:05 PM by djaydino »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: more than 10 digits in unity
« Reply #1 on: June 07, 2015, 12:59:06 PM »
Hmm.. All of the actions use native integers but for this type of thing it would typically use a long integer which is a different type of variable entirely so custom actions would have to be made for them. I believe they go up to 20, but I can't remember.. Have never really had a need for them.

Beyond that you could make a score builder sort of thing that can compile a string in parts based on smaller multipliers instead of direct score value, I think. There is probably some general info on the net about doing this in unity. Have you looked around on unity answers or the unity forum yet? Might find some high level ideas about it.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: more than 10 digits in unity
« Reply #2 on: June 08, 2015, 08:08:39 AM »
i think i found a solution :



when i reach higher amounts i can multiply lower and add Million / Billion / Trillion and so on to my string and it will still be easy to deduct to the total.


i will add SOLVED after a bit more testing :)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: more than 10 digits in unity[SOLVED]
« Reply #3 on: June 09, 2015, 01:34:50 PM »
seems to work fine so i have set this to solved.

still have to test on mobile tho..