Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: djaydino on June 07, 2015, 11:25:51 AM

Title: more than 10 digits in unity[SOLVED]
Post by: djaydino 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 (http://orteil.dashnet.org/cookieclicker/)

also thing to buy will be deducted from that score. similar from Cookie Clicker (http://orteil.dashnet.org/cookieclicker/)

any suggestions are very welcome.
Title: Re: more than 10 digits in unity
Post by: Lane 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.
Title: Re: more than 10 digits in unity
Post by: djaydino on June 08, 2015, 08:08:39 AM
i think i found a solution :

(http://s25.postimg.org/988siijyn/Capture.png)

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 :)
Title: Re: more than 10 digits in unity[SOLVED]
Post by: djaydino 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..